{"$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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"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":"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":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X31","name":"Test-only surface in a production module","shortDescription":{"text":"Test-only surface in a production module"},"helpUri":"https://codehealth.canine.dev/dimensions/X31"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"future_elixir_tokenizer.tokenize (cyclomatic 258): future_elixir_tokenizer.tokenize has cyclomatic complexity 258 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fe041cd013f2f7714e186ca70780f0b4d0eb099cd554a95102b138ccad696d"}},{"ruleId":"D1","level":"warning","message":{"text":"future_elixir_interpolation.unescape_unicode (cyclomatic 114): future_elixir_interpolation.unescape_unicode has cyclomatic complexity 114 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_interpolation.erl"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"beaf6cad2eb06073799667fc0827bf6dee65cb437db6c0c1fe27e43246ea9cc3"}},{"ruleId":"D1","level":"warning","message":{"text":"future_elixir_interpolation.unescape_hex (cyclomatic 111): future_elixir_interpolation.unescape_hex has cyclomatic complexity 111 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_interpolation.erl"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"543add75ed8af0afb431fc86c20a85d6c84bf455f35b90e0b43dc1fe7d2d029f"}},{"ruleId":"D1","level":"warning","message":{"text":"future_elixir_tokenizer.handle_dot (cyclomatic 50): future_elixir_tokenizer.handle_dot has cyclomatic complexity 50 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56a1a570af382d2723a58534b6878dd01a0bc5c1ed18ef5eb97fbfa5eb06777"}},{"ruleId":"D1","level":"warning","message":{"text":"future_elixir.env_for_eval (cyclomatic 31): future_elixir.env_for_eval has cyclomatic complexity 31 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir.erl"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7e763fc32bb5af12cc62c499b45dfd5fc24688e8518f9fd99d3edd75b444c0"}},{"ruleId":"D1","level":"warning","message":{"text":"Sqlite.reset_schema (cyclomatic 21): Sqlite.reset_schema has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b550cd53fdd6e93ce7e072ff6f600a16a218428ed0704b511c25cc5b381dab"}},{"ruleId":"D1","level":"warning","message":{"text":"future_elixir_errors.parse_error (cyclomatic 21): future_elixir_errors.parse_error has cyclomatic complexity 21 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_errors.erl"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a2b6b5438e3c488801762be95f5e3cd4ff879539df123fe5c9084b23af0014"}},{"ruleId":"D1","level":"warning","message":{"text":"future_elixir_tokenizer.check_terminator (cyclomatic 16): future_elixir_tokenizer.check_terminator has cyclomatic complexity 16 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This is NOT this file\u0027s highest cyclomatic complexity: future_elixir_tokenizer.prune_tokens (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"f203591ca6d14de5bbe0b62f580d9106c24afc174a1e6272b8af0449591b03ec"}},{"ruleId":"D1","level":"warning","message":{"text":"future_elixir_tokenizer.handle_strings (cyclomatic 16): future_elixir_tokenizer.handle_strings has cyclomatic complexity 16 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This is NOT this file\u0027s highest cyclomatic complexity: future_elixir_tokenizer.prune_tokens (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac0513dae17b48979cb002d38e178fd5b86cd416785eb2efacf5b35b00b3daa"}},{"ruleId":"D1","level":"warning","message":{"text":"future_elixir_tokenizer.tokenize_number (cyclomatic 16): future_elixir_tokenizer.tokenize_number has cyclomatic complexity 16 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This is NOT this file\u0027s highest cyclomatic complexity: future_elixir_tokenizer.prune_tokens (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7139e19aeb239b73078ab59f1ffa2d0100352f1cce17ffd48e932b848ffa17"}},{"ruleId":"D2","level":"warning","message":{"text":"future_elixir_tokenizer.tokenize (cognitive 153): future_elixir_tokenizer.tokenize has cognitive complexity 153 (threshold 15). Drivers by points: boolean chains 120, match/switch 20 (31 pts), if/else 2 (nesting depth added 11). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0ae713b6665d03d44eeea220f7ab7115654af9de547f93ab446c29c5579e12"}},{"ruleId":"D2","level":"warning","message":{"text":"future_elixir_interpolation.unescape_unicode (cognitive 106): future_elixir_interpolation.unescape_unicode has cognitive complexity 106 (threshold 15). Drivers by points: boolean chains 106. This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_interpolation.erl"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"808e808500508c6872b611ee0167421321c36dc25c3e0e39eff73261db2d45d7"}},{"ruleId":"D2","level":"warning","message":{"text":"future_elixir_interpolation.unescape_hex (cognitive 102): future_elixir_interpolation.unescape_hex has cognitive complexity 102 (threshold 15). Drivers by points: boolean chains 102. This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_interpolation.erl"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"203606c67005d91980f1a5c617b76fa87a4dc19f6f7b90b7f1b0ef3c8090a493"}},{"ruleId":"D2","level":"warning","message":{"text":"future_elixir_tokenizer.handle_dot (cognitive 40): future_elixir_tokenizer.handle_dot has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 35, match/switch 3 (5 pts) (nesting depth added 2). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e569de504fcb7d51cb9e33d35462fee341db2606c241d641f6e14ffce763b9e"}},{"ruleId":"D2","level":"warning","message":{"text":"Sqlite.reset_schema (cognitive 21): Sqlite.reset_schema has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, match/switch 1. 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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fe6d76ebd58685879f63ee1acca1bdde23ca69ed672f5e219521249db0e8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"Completion.complete (cognitive 17): Completion.complete has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 3 (8 pts), boolean chains 1 (nesting depth added 9). 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":"apps/expert/lib/expert/integrations/spark/completion.ex"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be11d789ca136205e4072de5446b81a5390b06b4394d0032a149f589c2a1527"}},{"ruleId":"D2","level":"warning","message":{"text":"Completion.dsl_call_candidates (cognitive 16): Completion.dsl_call_candidates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 3 (6 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":"apps/expert/lib/expert/integrations/spark/completion.ex"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3cc0a860dd67a5e147cc39a34501862c320066f72b5791226087267f46bfb4f"}},{"ruleId":"D2","level":"warning","message":{"text":"future_elixir.env_for_eval (cognitive 16): future_elixir.env_for_eval has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 13 (15 pts), boolean chains 1 (nesting depth added 2). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir.erl"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"10564ca3361528c621d85442542ae1f2ea52ac60bbec48b74ceb22118c07c04a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backends/sqlite.ex: FileTooLong \u2014 1642 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 182 functions. The bar is 500 significant lines; this is 1142 over it, 3.28\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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b2c415f088040b67049d0ce1137713b5573d6a2c0fbac5b5caba49f72e98d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/future_elixir_tokenizer.erl: FileTooLong \u2014 1408 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 80 functions. The bar is 500 significant lines; this is 908 over it, 2.82\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee26f976451afab7d7b66226fc41425fd8006d4f845fe2405fa06388be9f3ca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: future_elixir_errors: TooManyFunctions \u2014 46 functions. The bar is 30 functions; this is 16 over it, 1.53\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":"apps/forge/src/future_elixir_errors.erl"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a20cadc90e70f9c7ee7da11878cae330326ecae4080de35aae981b8d876970"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Store: TooManyFunctions \u2014 44 functions. The bar is 30 functions; this is 14 over it, 1.47\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":"apps/expert/lib/expert/search/store.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce0af3e04e7fc76cd8c33b676b5d0b5ecb232bf472643f7b9ae552ac2f85a50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Port: TooManyFunctions \u2014 42 functions. The bar is 30 functions; this is 12 over it, 1.40\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":"apps/expert/lib/expert/port.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ce1b2d9904131f8e2950f744d2a0ddac4283d1e01edc421ca6db7e93aa08cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: indexer/beams.ex: FileTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 75 functions. The bar is 500 significant lines; this is 180 over it, 1.36\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":"apps/expert/lib/expert/search/indexer/beams.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e7bab785134df78be809eccf8142f1b910a5fa7a7d9a82852c83f6ca32b7fb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Indexer: TooManyFunctions \u2014 40 functions. The bar is 30 functions; this is 10 over it, 1.33\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":"apps/expert/lib/expert/integrations/spark/indexer.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b99e73dfa1f9a1aa8b761e1fef4550cf0864fb054592f9038c711893f52368"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tasks/format.ex: FileTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 145 over it, 1.29\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":"apps/forge/lib/future/mix/tasks/format.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d588976027d48545b83d79fb250b5e73e8ccec9489bcfed66bca8b4af59dbdc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: code/fragment.ex: FileTooLong \u2014 637 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 36 functions. The bar is 500 significant lines; this is 137 over it, 1.27\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":"apps/forge/lib/future/code/fragment.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a0ed8157233f7c844770d3d8cf63947ad80bbeedbf20bd98bee0dc6ad72249"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: EngineApi: TooManyFunctions \u2014 35 functions. The bar is 30 functions; this is 5 over it, 1.17\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":"apps/expert/lib/expert/engine_api.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d73112069f3be438fec6604ec809baf71073570f81e7ae17234668c386bc956"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forge/ast.ex: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 51 functions. The bar is 500 significant lines; this is 59 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":"apps/forge/lib/forge/ast.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07355d271043b69983840a231957c6f6cca8115828e2a6c6e45b540600eac32"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: future/code.ex: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 60 functions. The bar is 500 significant lines; this is 58 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":"apps/forge/lib/future/code.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13a92a8dfd1f28d9bf89a22bd5cba75c04d72901edf11b851b16cc7321d462b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Indexer: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.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":"apps/expert/lib/expert/search/indexer.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d44900dac583b37cc3ccae3962e3a029c95eb6234855037efef1d0d37c6d2e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: translations/macro.ex: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 35 over it, 1.07\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":"apps/expert/lib/expert/code_intelligence/completion/translations/macro.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b940158b7a11a1e60739509e8387eea60bac5e469cd69c9d503b2167cf40a379"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Completion: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\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":"apps/expert/lib/expert/integrations/spark/completion.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c23868e2654c3ad2825ac600031e2dc40caf24ed7bd9b8989a85648b46fecf0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Project: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\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":"apps/forge/lib/forge/project.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa1f2e046346293b7b2c72492d1e77e0d452f4ac3d4a91c4203e00893eaf97d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Entity: 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":"apps/engine/lib/engine/code_intelligence/entity.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0562b5164a66c31c10ef7d7bb37cdc729340c35215f18fb24c8e012a51c842ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Reducer: 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":"apps/expert/lib/expert/search/indexer/source/reducer.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f46a656b2ca0abc0b9ea7f35963a00a3a4c4bd57160717dc600c754b62c3c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): apps/forge/src/future_elixir_interpolation.erl:190-225 | apps/forge/src/future_elixir_interpolation.erl:229-251 \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":"apps/forge/src/future_elixir_interpolation.erl"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd596cc945c6d559db82e2cb0bbd47410739901e9ec37a80e41759e2b5f7b0b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): apps/engine/lib/engine/analyzer/imports.ex:162-204 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:206-251 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfec2df62aebb7286c5aa508de6e4517d6228703dd699bca0903dcd5c57e81c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/forge/src/future_elixir_tokenizer.erl:827-839 | apps/forge/src/future_elixir_tokenizer.erl:841-872 \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":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc598cca80750ccfa35ccef0342dffe4a53956eb3c37dfedb665f1e0f675857"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/engine/lib/engine/analyzer/imports.ex:61-77 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:96-111 \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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"867875af2a689c7b4675b622d79aa7f7a1f63dec549e4ed2d25fcb5089ac340a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): apps/expert/lib/expert/search/indexer/extractors/ecto_schema.ex:36-61 | apps/expert/lib/expert/search/indexer/extractors/ecto_schema.ex:69-93 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"apps/expert/lib/expert/search/indexer/extractors/ecto_schema.ex"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afa63bbce31a9bc1800113539feab4c62cc16e9db3bda804c0a34f32470e47f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/expert/lib/expert/search/store/backends/sqlite.ex:482-508 | apps/expert/lib/expert/search/store/backends/sqlite.ex:699-713 \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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"03980dcaf378ed2c7dfed04791408d3f496473fa782186455a43a537b3ee5a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/expert/lib/expert/integrations/spark/indexer.ex:275-287 | apps/expert/lib/expert/integrations/spark/indexer.ex:291-312 \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":"apps/expert/lib/expert/integrations/spark/indexer.ex"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"39106552a44a38a12a2c12c12def4fb6cc99d48b19a4b89525c903bdc9b6fe38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): apps/forge/src/future_elixir_tokenizer.erl:1148-1154 | apps/forge/src/future_elixir_tokenizer.erl:1156-1162 | apps/forge/src/future_elixir_tokenizer.erl:1164-1170 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52f91e69c682f9e55778d887de88481452c50bbfc1f43abebdbf269df85dc1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): apps/expert/lib/expert/search/indexer/extractors/module.ex:31-53 | apps/expert/lib/expert/search/indexer/extractors/module.ex:69-97 \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":"apps/expert/lib/expert/search/indexer/extractors/module.ex"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a9b80f08b3f0fa07ab173b7fcec9a5c0758ce0707a5b6bb55cc08600edf960"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/expert/lib/expert/search/store/backends/sqlite.ex:419-431 | apps/expert/lib/expert/search/store/backends/sqlite.ex:885-899 \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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"7790c8852d19802b16bcb52466fa5d8cedb3ca482b61317d42243a77254f54f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/expert/lib/expert/search/indexer/extractors/ex_unit.ex:15-29 | apps/expert/lib/expert/search/indexer/extractors/ex_unit.ex:35-49 \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":"apps/expert/lib/expert/search/indexer/extractors/ex_unit.ex"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc03593605db2ce57ee540233eb20241cca5dc44a338b509074799b1c8afd8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/engine/lib/engine/analyzer/imports.ex:90-97 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:124-134 \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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"729a1aac0ec5215b5201ee42ec72eef77b5ec9d6c0900256bdef5c41aadbc633"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/expert/lib/expert/code_intelligence/completion/builder.ex:46-61 | apps/expert/lib/expert/code_intelligence/completion/builder.ex:66-85 \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":"apps/expert/lib/expert/code_intelligence/completion/builder.ex"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"358b96bf47febefa06e7bb22af319b4df1e4258991a60fb772899807d3d7a02e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/engine/lib/engine/analyzer/imports.ex:149-158 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:188-197 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"121fd36b1e2c1f4d877d4f50cad1603ef2f736c50bf7ff876e831b97bf6dae5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/expert/lib/expert/search/indexer/extractors/ex_unit.ex:109-118 | apps/expert/lib/expert/search/indexer/extractors/ex_unit.ex:122-143 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"apps/expert/lib/expert/search/indexer/extractors/ex_unit.ex"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5ae3615fe6f65fdcda868784f1263f7dfbf531a8c403a12e335d07311cf3f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/forge/lib/forge/refactor/function/use_keyword_syntax.ex:36-43 | apps/forge/lib/forge/refactor/function/use_regular_syntax.ex:23-30 \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":"apps/forge/lib/forge/refactor/function/use_keyword_syntax.ex"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e71c37924aec6c672765ada6dcef90f0cbee4f24a04e1b34eaa7e4b8549c080"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): apps/forge/lib/forge/refactor/ast.ex:16-27 | apps/forge/lib/forge/refactor/ast.ex:31-42 \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":"apps/forge/lib/forge/refactor/ast.ex"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b20130fb992201f1f11f36c87fc98fc6fef8828c32e70e41186a7ce5c0101e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): apps/expert/lib/expert/engine.ex:119-135 | apps/expert/lib/expert/engine.ex:141-162 \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":"apps/expert/lib/expert/engine.ex"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"661b59e146a4d33dd1daf3b47639337a5cf2a9e7cfba7e676f58545854540ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): apps/forge/lib/forge/ast.ex:550-561 | apps/forge/lib/forge/protocol/convertible.ex:7-24 | apps/forge/lib/forge/protocol/convertible.ex:28-45 | apps/forge/lib/forge/protocol/convertible.ex:63-82 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 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":"apps/forge/lib/forge/ast.ex"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f14db4cac275e7b6fa26bdfeb9fce195e8d440d7311cbb3cb383f114842be0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/expert/lib/expert/code_intelligence/hex.ex:148-161 | apps/expert/lib/expert/code_intelligence/hex.ex:168-181 \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":"apps/expert/lib/expert/code_intelligence/hex.ex"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d369cd2fffef8d8027394d6829b8f07e9675fe23c9f8cb24765b95e9c5c9d9f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/expert/lib/expert/search/indexer/extractors/variable.ex:174-187 | apps/expert/lib/expert/search/indexer/extractors/variable.ex:212-225 \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":"apps/expert/lib/expert/search/indexer/extractors/variable.ex"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"5758c0829e5673b27219fd0e0fbe05ce35686d2081a2a38b3ec7bc11057dbcb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): apps/engine/lib/engine/code_action/handlers/remove_unused_alias.ex:51-69 | apps/engine/lib/engine/code_action/handlers/replace_with_underscore.ex:15-31 \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":"apps/engine/lib/engine/code_action/handlers/remove_unused_alias.ex"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f9900dc1a49e1e6740ab9ce4f99662e78253b0b20558c0cb80c6da8c0790cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/engine/lib/engine/analyzer/imports.ex:28-40 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:35-47 \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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff6121fce77061eef66f9adafa999c48c8e2167c660b445952bed7db99a613e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/expert/lib/expert/search/store/state.ex:287-301 | apps/expert/lib/expert/search/store/state.ex:354-369 \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":"apps/expert/lib/expert/search/store/state.ex"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"af730e3d4671ef1539eb70a802af7d085b1df020af866540749fd1fdf9be3926"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): apps/forge/lib/future/code/identifier.ex:126-127 | apps/forge/lib/future/code/identifier.ex:131-132 \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":"apps/forge/lib/future/code/identifier.ex"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f66974b1d13465db745168709f66b8a0314d58f241d73635f548f7ff2da2b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/expert/lib/expert/code_intelligence/variable.ex:211-217 | apps/expert/lib/expert/code_intelligence/variable.ex:224-233 \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":"apps/expert/lib/expert/code_intelligence/variable.ex"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcddd4f78ee0d36c686b4ef93dd2b80a95ae16ee6b145ea713b9190496999af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): apps/expert/lib/expert/search/store/backends/sqlite.ex:1253-1265 | apps/expert/lib/expert/search/store/backends/sqlite.ex:1495-1509 | apps/expert/lib/expert/search/store/backends/sqlite.ex:1580-1593 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a0f8edb1119d59cfa96bc36d9af85118b53c921adda592d78a22c60f67b62c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/expert/lib/expert/search/store/backends/sqlite.ex:1387-1402 | apps/expert/lib/expert/search/store/backends/sqlite.ex:1406-1421 \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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc794ca9f9bef4d24c752a0a866d4230d4844c5aec5ca4131cbe271e82c601b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/forge/lib/future/code.ex:1381-1390 | apps/forge/lib/future/code.ex:1427-1441 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"apps/forge/lib/future/code.ex"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6025bce684dcfa9631ab37dd4e04fed17f86bcd756416abc6240d96ad3ed4bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): apps/expert/lib/expert/integrations/cache.ex:20-35 | apps/expert/lib/expert/search/indexer/module_registry.ex:248-259 \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":"apps/expert/lib/expert/integrations/cache.ex"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"093ece02161219dba054cb89ce88b67d18eed8ecfc7d3fbb9b86f4dedf98b561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/engine/lib/engine/modules.ex:54-63 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:321-332 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"apps/engine/lib/engine/modules.ex"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f0bde2c340aba188fb666ae43bb0d5f9e266a2792872dc334fe44befcfb0ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): apps/expert/lib/expert/code_intelligence/hex/api.ex:21-32 | apps/expert/lib/expert/code_intelligence/hex/api.ex:40-49 | apps/expert/lib/expert/code_intelligence/hex/api.ex:53-65 | apps/expert/lib/expert/code_intelligence/hex/api.ex:146-155 | apps/expert/lib/expert/code_intelligence/hex/api.ex:179-188 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/lib/expert/code_intelligence/hex/api.ex"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c8e4473353d20aa195590187a62fbb05d42f5f0420a2e77259bf3f8967f244"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/expert/lib/expert/search/store.ex:196-203 | apps/expert/lib/expert/search/store.ex:401-410 \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":"apps/expert/lib/expert/search/store.ex"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb6e8a0d244a3654a8c19658cbc32cfdebdacf66eb0f3e8f4ab1807a2a0e99e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): apps/expert/lib/expert/search/store/state.ex:102-108 | apps/expert/lib/expert/search/store/state.ex:114-120 | apps/expert/lib/expert/search/store/state.ex:126-132 | apps/expert/lib/expert/search/store/state.ex:138-144 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 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":"apps/expert/lib/expert/search/store/state.ex"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"89551563eebcfab17eec7850b4980ffcd276f0e4fb8fe01bf1ad1fee69eb8bb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): apps/forge/lib/forge/refactor/function/inline_function.ex:17-35 | apps/forge/lib/forge/refactor/guard/inline_guard.ex:15-33 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/lib/forge/refactor/function/inline_function.ex"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b05655a2a527848cd2c2f3c311604aa4367fa001ae8490a42fff5da423115f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): apps/engine/lib/engine/search/fuzzy/scorer.ex:237-251 | apps/expert/lib/expert/search/fuzzy/scorer.ex:133-143 \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":"apps/engine/lib/engine/search/fuzzy/scorer.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ddd43f082222286fb8fb2a92ba18f41ca07862a38a990728cd07e393e99287"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/expert/lib/expert/provider/handlers/formatting.ex:19-28 | apps/expert/lib/expert/provider/handlers/go_to_declaration.ex:16-25 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"apps/expert/lib/expert/provider/handlers/formatting.ex"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b13b864f3f53f3243d06540e2f937c89b9b5ca623b9287928b7853bb6217842"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): apps/expert/lib/expert/search/store.ex:209-215 | apps/expert/lib/expert/search/store.ex:233-240 | apps/expert/lib/expert/search/store.ex:349-359 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"apps/expert/lib/expert/search/store.ex"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1f281e7f074a114912734431feda503416943fa45733ea423afa5b79af0138"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/expert/lib/expert/search/store/backends/sqlite.ex:358-367 | apps/expert/lib/expert/search/store/backends/sqlite.ex:387-408 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f2a757a970e8a9485d9b26b202062f99a8852df51290b008cb7addf6992f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/forge/lib/forge/refactor/if_else/use_keyword_syntax.ex:32-39 | apps/forge/lib/forge/refactor/if_else/use_regular_syntax.ex:20-27 \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":"apps/forge/lib/forge/refactor/if_else/use_keyword_syntax.ex"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85807cd8f366f34b0a92a104834b36c1e324827415565b5c2abe6b91935cadd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/forge/lib/forge/ast/analysis.ex:37-46 | apps/forge/lib/forge/ast/analysis.ex:50-60 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"apps/forge/lib/forge/ast/analysis.ex"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff7e0ea33e9760c8b1ae12555fbc401b4c2c3c657afd0d20633bed0f55b0f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): apps/forge/lib/forge/namespace/transform/apps.ex:42-47 | apps/forge/lib/forge/namespace/transform/beams.ex:95-101 \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":"apps/forge/lib/forge/namespace/transform/apps.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0997d9156bd8d171a2d1baafeeeea8ab23583bea7c09b6368dff85c559e529b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): apps/engine/lib/engine/analyzer/imports.ex:54-57 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:68-85 \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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a03fef0419b486ee0be5aebf84da0d9c6558d563892f8fe17631dae606f54d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): apps/engine/lib/engine/search/fuzzy.ex:315-325 | apps/expert/lib/expert/search/fuzzy.ex:264-272 \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":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc31c021deacbb70c5ceabb97f7148cdf49a9016c62d1f1f6fdcd65240f70170"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/engine/lib/engine/analyzer.ex:29-37 | apps/expert/lib/expert/search/indexer/analyzer.ex:47-53 \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":"apps/engine/lib/engine/analyzer.ex"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"75af77066818265469043a4834cd51965e467ce753189b70ba029a53188312bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): apps/engine/lib/engine/analyzer/imports.ex:229-235 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:289-291 \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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f89c93db5ad755be1bdad785084d48dc8f7a1f1412fb1fa8dc413f2baaeab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): apps/forge/src/future_elixir_interpolation.erl:294-295 | apps/forge/src/future_elixir_tokenizer.erl:1717-1718 \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":"apps/forge/src/future_elixir_interpolation.erl"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b75935f0d9ed340ef8a653b48f0742e8131bad1da1dd03ecd852e6ba230d800"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/forge/lib/forge/refactor/alias/expand_aliases.ex:20-32 | apps/forge/lib/forge/refactor/guard/extract_guard.ex:18-30 \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":"apps/forge/lib/forge/refactor/alias/expand_aliases.ex"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf56dca67b2b041e6799f31607a3dbc3991cda062c862d75f998d1c4adfbb71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): apps/forge/lib/forge/refactor/function/collapse_anonymous_function.ex:14-14 | apps/forge/lib/forge/refactor/function/extract_anonymous_function.ex:16-16 \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":"apps/forge/lib/forge/refactor/function/collapse_anonymous_function.ex"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ee298256438d555f4b5b0744da852e6dc85c0ee88227cc4883b0cfaf754bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/forge/lib/forge/refactor/pipeline/introduce_io_inspect.ex:23-35 | apps/forge/lib/forge/refactor/variable/extract_variable.ex:22-37 \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":"apps/forge/lib/forge/refactor/pipeline/introduce_io_inspect.ex"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b769cc009b8c686f7bfb4b3886f683679e73c4b7e7cd78619924796af8c5ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/engine/lib/engine/analyzer/imports.ex:13-19 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:14-20 \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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be53d588e351972df74e9e5b58cf8f928b007b39a8200b7f2b12c99242e89cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): apps/expert/lib/expert/search/indexer/beams.ex:242-245 | apps/expert/lib/expert/search/indexer/manifest.ex:126-132 \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":"apps/expert/lib/expert/search/indexer/beams.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"244508e8eafc9533caed673ffe6abfb87ac881cfdd384fcee921f09c4de528a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): apps/forge/lib/forge/refactor/if_else/use_keyword_syntax.ex:42-43 | apps/forge/lib/forge/refactor/if_else/use_regular_syntax.ex:30-31 \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":"apps/forge/lib/forge/refactor/if_else/use_keyword_syntax.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7315b6a8eebae85131910669a210d8ac8678e1550559fd8bc5f5d4cde3e02e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): apps/expert/lib/convertibles/gen_lsp.structures.location.ex:8-10 | apps/expert/lib/convertibles/gen_lsp.structures.text_edit.ex:7-9 \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":"apps/expert/lib/convertibles/gen_lsp.structures.location.ex"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2099080202dc15b3eb910d7d45baaab0eefd04cea3575fd69fec418081b6118e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/expert/lib/expert/integrations/cache.ex:56-65 | apps/expert/lib/expert/search/indexer/module_registry.ex:56-66 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"apps/expert/lib/expert/integrations/cache.ex"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"090a7c9d164e02efb24d3e7e5096675dd766c919ecd1da2998cec191317e3c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): apps/engine/lib/engine/analyzer/imports.ex:101-104 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:138-143 \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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef05b12f2dbc16048df9e34eadf1a6dbcd66b7e74edbd71cc459a204b806849"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): apps/engine/lib/engine/modules.ex:67-67 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:261-261 \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":"apps/engine/lib/engine/modules.ex"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"19397cc8882b3f6e436ea2bc46868261eddd7c91254af491cc7af41cbc3e92fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): apps/forge/lib/forge/namespace/file_sync.ex:107-112 | apps/forge/lib/forge/namespace/transform/boots.ex:22-26 \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":"apps/forge/lib/forge/namespace/file_sync.ex"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d45c68f4e8ff7ce7779bd8849e797f3c18206ec579218e5ec411531893f1f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): apps/forge/lib/forge/refactor/constant/extract_constant.ex:16-18 | apps/forge/lib/forge/refactor/function/extract_function.ex:18-20 | apps/forge/lib/forge/refactor/variable/extract_variable.ex:17-19 \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":"apps/forge/lib/forge/refactor/constant/extract_constant.ex"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9342ded58109274115ebe8a552bd1506fbc64cc0636d716a46ba66bfe5f0f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): apps/engine/lib/engine/code_action/handlers/add_alias.ex:211-211 | apps/forge/lib/forge/namespace/module.ex:35-35 \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":"apps/engine/lib/engine/code_action/handlers/add_alias.ex"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6533af2725fa5c43acfb200013a8503d80bcc119e1c86bb0e78f1fef37a8a989"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): apps/engine/lib/engine/code_intelligence/hover.ex:36-39 | apps/expert/lib/expert/document/lookup.ex:102-105 \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":"apps/engine/lib/engine/code_intelligence/hover.ex"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab878d3b70945db1c2ffae8b6648479314e34235f6e16e203fd57949a5ceaafb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): apps/forge/lib/forge/ast/analysis/require.ex:15-16 | apps/forge/lib/forge/ast/analysis/use.ex:8-9 \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":"apps/forge/lib/forge/ast/analysis/require.ex"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8870b4beb9870f186957fdeedff6bd6a04c347447dcb480247883de1bdfa54f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201341 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:207-247 | apps/expert/lib/expert/search/fuzzy.ex:175-213 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a903da16590e7d27c4dfcf3a158b198e168dfc37b5529ec550e362bd73f047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:69-99 | apps/expert/lib/expert/search/fuzzy.ex:65-93 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac80437e9e2cee2d7a7b3e004cff7f16b1694f9548409f1adfe49c65dfa62f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:137-166 | apps/expert/lib/expert/search/fuzzy.ex:116-143 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e337fa646741e4dc83e102fad5b59f3fa0ffc26b3b2c0985f2ace42306378d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): apps/expert/lib/expert/code_intelligence/completion/translations/module_attribute.ex:18-44 | apps/expert/lib/expert/code_intelligence/completion/translations/module_attribute.ex:48-74 \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":"apps/expert/lib/expert/code_intelligence/completion/translations/module_attribute.ex"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dffc890e4c0181f7b22eff94f1b9a24f210c32883330b9347139b883bbcd30a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/engine/lib/engine/analyzer.ex:100-118 | apps/expert/lib/expert/search/indexer/analyzer.ex:140-158 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analyzer.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/analyzer.ex"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c7d39e925d064c7e72ff520c968fc12b594f70bffc67145f2a4e8762a5b72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/engine/lib/engine/analyzer/aliases.ex:33-51 | apps/expert/lib/expert/search/indexer/analysis/aliases.ex:42-60 \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":"apps/engine/lib/engine/analyzer/aliases.ex"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d6a67ce4767fe28db5282e21533b25360cef110f49e20f3621bba348663b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/expert/lib/expert/search/indexer/extractors/module.ex:139-156 | apps/expert/lib/expert/search/indexer/extractors/module.ex:171-188 \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":"apps/expert/lib/expert/search/indexer/extractors/module.ex"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf132cac887996ae0db9a02baef530bb47a7ccf6455a4b4ecf528ac010c03d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy/scorer.ex:167-183 | apps/expert/lib/expert/search/fuzzy/scorer.ex:156-168 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy/scorer.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy/scorer.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note 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":"apps/engine/lib/engine/search/fuzzy/scorer.ex"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8cbb5dd12acb52666cbe6872e94db494a1373763125259f68eb90c5c8f140a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/engine/lib/engine/analyzer/uses.ex:7-21 | apps/expert/lib/expert/search/indexer/analysis/uses.ex:7-21 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer/uses.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analysis/uses.ex\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/engine/lib/engine/analyzer/uses.ex:7\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":"apps/engine/lib/engine/analyzer/uses.ex"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b746b2631f7adf86bf6459b270aea8d3d9f0367ccb783b32811f0e2931176a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/engine/lib/engine/modules.ex:90-104 | apps/engine/lib/engine/modules.ex:137-151 \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":"apps/engine/lib/engine/modules.ex"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"91af9482c8ff098634b75a28ef7783d2e9be8f2e3996f9d439cbafe63b354dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:111-123 | apps/expert/lib/expert/search/fuzzy.ex:98-107 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdc84e0f867d61298afe214e0820c23d7b52b28207398bee7484ab789e22737"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy/scorer.ex:102-114 | apps/expert/lib/expert/search/fuzzy/scorer.ex:69-81 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy/scorer.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy/scorer.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/engine/lib/engine/search/fuzzy/scorer.ex:102\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":"apps/engine/lib/engine/search/fuzzy/scorer.ex"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5c699a61f4160da9ace6c2975f1565c65275a0b839655de2d51093c79a41e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy/scorer.ex:219-231 | apps/expert/lib/expert/search/fuzzy/scorer.ex:117-129 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy/scorer.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy/scorer.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy/scorer.ex"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"92600d26e8d21ef8ada1910e236d395ccd56e6a41d8967015d851be16d1a3512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): apps/expert/lib/expert/search/store/backends/sqlite.ex:496-508 | apps/expert/lib/expert/search/store/backends/sqlite.ex:705-713 \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 \u0060apps/expert/lib/expert/search/store/backends/sqlite.ex:496\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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"02de9d5e6a36f66d0dfdfbe9144da8007631c1b609eb7734c2f317c2ffd5f662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/engine/lib/engine/analyzer/imports.ex:167-177 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:211-221 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer/imports.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analysis/imports.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/engine/lib/engine/analyzer/imports.ex:167\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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b2fc9de86737ce7810383f27c06044509675788deb5cc94397c16d585397d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): apps/expert/lib/expert/code_intelligence/completion/builder.ex:46-54 | apps/expert/lib/expert/code_intelligence/completion/builder.ex:67-77 \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":"apps/expert/lib/expert/code_intelligence/completion/builder.ex"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7357a4f9b705c59b6dcbc2a72068a8721a68835f93d97d11ae268c78fbd60ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:338-347 | apps/expert/lib/expert/search/fuzzy.ex:276-285 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c87041e493d10d23cb2d74f154c58e41f81beb5e1c076dc6c74a90d980a8635"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): apps/expert/lib/expert/search/store/backends/sqlite.ex:869-878 | apps/expert/lib/expert/search/store/backends/sqlite.ex:904-912 \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 \u0060apps/expert/lib/expert/search/store/backends/sqlite.ex:869\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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17fb8d99eb5dd27e7152d643baefb393c1fbe9a001da26a1488ab9942441b4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/engine/lib/engine/analyzer.ex:18-25 | apps/expert/lib/expert/search/indexer/analyzer.ex:36-43 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analyzer.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/analyzer.ex"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"73678a1fcc1caf335e554222acbe64f5c600d0740b7d07a7fdf2aa59d1572d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/expert/lib/expert/integrations/spark/indexer.ex:275-282 | apps/expert/lib/expert/integrations/spark/indexer.ex:291-298 \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 \u0060apps/expert/lib/expert/integrations/spark/indexer.ex:275\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":"apps/expert/lib/expert/integrations/spark/indexer.ex"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"138e28ddea2578cc7b378bcb2d05328cbf30684b90c0c8d980fc25c8c0ef13d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/engine/lib/engine/analyzer/imports.ex:149-155 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:188-194 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer/imports.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analysis/imports.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb907e7610879d9265982d732ae5e5be0050517c91e09004f88201c2effc0133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/engine/lib/engine/analyzer/imports.ex:44-50 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:51-57 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer/imports.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analysis/imports.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"07de657fc0e732432d8ee5a328be18bc1bd1a330cf40b82c169f085ad21de310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/expert/lib/expert/search/store/backends/sqlite.ex:860-864 | apps/expert/lib/expert/search/store/backends/sqlite.ex:885-889 \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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad468d1e33eeb547332f315fa339bf05f163bdb3f683849e2b8f0a678f7d781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/engine/lib/engine/analyzer.ex:203-211 | apps/expert/lib/expert/search/indexer/analyzer.ex:243-251 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analyzer.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/engine/lib/engine/analyzer.ex:203\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":"apps/engine/lib/engine/analyzer.ex"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf270c18525e4fb9f20d6f7fba0e607598868136e37593ac9166bfa668fbee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/engine/lib/engine/analyzer/aliases.ex:59-64 | apps/expert/lib/expert/search/indexer/analysis/aliases.ex:68-73 \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":"apps/engine/lib/engine/analyzer/aliases.ex"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30eb2183ef050d6e153a1978f692e73cd65c206a7b702ecc857887a00f9070f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/engine/lib/engine/analyzer/imports.ex:81-86 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:115-120 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer/imports.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analysis/imports.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bda1a00ce3dd01df4b9f9d807c820e1cade210c9dcb7893e4587459fd1e537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/engine/lib/engine/analyzer/imports.ex:254-260 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:309-315 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer/imports.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analysis/imports.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"571c75727480166b05660ed41115020ef73e8308f1464b195be20b7419098d85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/engine/lib/engine/code_mod/aliases.ex:54-58 | apps/engine/lib/engine/code_mod/requires.ex:36-40 \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":"apps/engine/lib/engine/code_mod/aliases.ex"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"074f6609befb9542336229888858abda56ce63d688439a0e84144ee19d5a528b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:251-257 | apps/expert/lib/expert/search/fuzzy.ex:217-222 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"a605a328c7e98b125c95874796ebd1894b027c1526a3f5d3532b6b3d8cd8c230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:261-265 | apps/expert/lib/expert/search/fuzzy.ex:226-230 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0f1bd3ce025a9d5b9aba8db166296d27160aaf18e3e2eafce9d9537bd5ba58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:285-294 | apps/expert/lib/expert/search/fuzzy.ex:241-245 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d7a3138c0e3842a2b5a053a934c5caeb0c1bbf27e3f3b2bcaa89a34c27898e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:302-311 | apps/expert/lib/expert/search/fuzzy.ex:251-260 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb11908fe5330984de9e914fdfdfee9a7c0c18120f064b4ee028337378b43104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy/scorer.ex:79-92 | apps/expert/lib/expert/search/fuzzy/scorer.ex:50-63 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy/scorer.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy/scorer.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy/scorer.ex"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d00a793c46ed602da3569ab83947907ab216433668347d04964b3ee3e0d097"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy/scorer.ex:197-208 | apps/expert/lib/expert/search/fuzzy/scorer.ex:176-185 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy/scorer.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy/scorer.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy/scorer.ex"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"004e2419e94d0fba16ee943c9311c1ae74267a3e1ec39b3b37c9f248aa79c304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/expert/lib/expert/search/indexer/beams.ex:112-118 | apps/expert/lib/expert/search/indexer/sources.ex:66-72 \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":"apps/expert/lib/expert/search/indexer/beams.ex"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab35d0538e1a031e5171c100ae4f6d3d2288eecd30a2294b2bef01f61a92b55a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/expert/lib/expert/search/indexer/beams.ex:124-132 | apps/expert/lib/expert/search/indexer/sources.ex:78-86 \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":"apps/expert/lib/expert/search/indexer/beams.ex"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe73ecc2265e6d8ec078506087e7a306eea873d7156cdbe7091d39800b86847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/forge/lib/forge/ast/parser/elixir.ex:7-12 | apps/forge/lib/forge/ast/parser/spitfire.ex:52-57 \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":"apps/forge/lib/forge/ast/parser/elixir.ex"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c010123c395665080264066bf3dc76b51c1abd8d1f43b0b1e66cceaadc03f161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/forge/lib/forge/refactor/pipeline/introduce_io_inspect.ex:42-46 | apps/forge/lib/forge/refactor/variable/extract_variable.ex:209-218 \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 \u0060apps/forge/lib/forge/refactor/pipeline/introduce_io_inspect.ex:42\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":"apps/forge/lib/forge/refactor/pipeline/introduce_io_inspect.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce724c61ef3d7a0d5e7d115eef713ca6e273d93f5e734130b594b0e1e15abfb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/engine/lib/engine/analyzer.ex:193-199 | apps/expert/lib/expert/search/indexer/analyzer.ex:233-239 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analyzer.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/analyzer.ex"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d5584f53cffd93be8973e798999538ab94cfbdf78b64ed7726b6e5644729fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/expert/lib/expert/search/store.ex:23-32 | apps/expert/lib/expert/search/store/backends/sqlite.ex:113-122 \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":"apps/expert/lib/expert/search/store.ex"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2166e9d314209fbbec391ca28221815876bc4969b3ce36f2e77fd3055638c05e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): apps/forge/lib/forge/namespace/transform/apps.ex:7-12 | apps/forge/lib/forge/namespace/transform/boots.ex:6-11 | apps/forge/lib/forge/namespace/transform/scripts.ex:7-12 \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 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/lib/forge/namespace/transform/apps.ex"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee54a8f758770a2f83229992baa52de2b92407e862c79b714ef0b1658f4ad153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/engine/lib/engine/analyzer/imports.ex:61-66 | apps/expert/lib/expert/search/indexer/analysis/imports.ex:96-101 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/analyzer/imports.ex\u0060 and \u0060apps/expert/lib/expert/search/indexer/analysis/imports.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1d8043e2a572c9907648e2feed2bb4497c1a53dd1042f78c98cf0cbb3c6445"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: forge: forge: abstractness 0.04, instability 0.00, distance 0.96 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bacb7d092dfe81b294a3808d796902dd946623110f16ccf0b4d64cc406830e4f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: State (LCOM4 8): State\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/lib/expert/state.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82f17b610558b43ad8a991ff95e47e866cedb8e21f0abe685df1c568d450da2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Build (LCOM4 4): Build\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/build.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39228d3674c79a773aa13f654a1d1222f06c846d615dd01f0b7364de12b6573d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/expert/lib/expert/search/store/backends/sqlite.ex: apps/expert/lib/expert/search/store/backends/sqlite.ex changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Sqlite.reset_schema at line 859. 3 of those changes were fix/bug commits, and the other 13 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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 15:49:09 \u002B00:00\u0027 --until=\u00272026-11-12 15:49:09 \u002B00:00\u0027 --full-history --no-merges -- apps/expert/lib/expert/search/store/backends/sqlite.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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"457aff50bd6e61671946e3256c0d4784f3f75df0213cc516d599aef540dae0c9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/engine/lib/engine/build/state.ex: apps/engine/lib/engine/build/state.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 6 (its worst body is State.ensure_build_directory at line 58), 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(expert): resolve imported calls from the compiler\u0027s trace (#971)\u201D; \u201Cfix(engine): keep the module table from filling up on large projects (#948)\u201D; \u201Cfix(engine): drop edit window to 100ms (#872)\u201D; \u201Cfix: index macro-generated definitions from compiler traces (#856)\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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 15:49:09 \u002B00:00\u0027 --until=\u00272026-11-12 15:49:09 \u002B00:00\u0027 --full-history --no-merges -- apps/engine/lib/engine/build/state.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":"apps/engine/lib/engine/build/state.ex"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8b0a3461f69818e80c7b37dc76280b04a7d9d2ae58222b0ed62424aa2ef151"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/expert/lib/expert/search/indexer/module_registry.ex: apps/expert/lib/expert/search/indexer/module_registry.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 ModuleRegistry.application at line 187), 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(expert): persist module registry (#969)\u201D; \u201Cfix(expert): index BEAM files without creating atoms (#968)\u201D; \u201Cfix(expert): resolve imported calls from the compiler\u0027s trace (#971)\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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 15:49:09 \u002B00:00\u0027 --until=\u00272026-11-12 15:49:09 \u002B00:00\u0027 --full-history --no-merges -- apps/expert/lib/expert/search/indexer/module_registry.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":"apps/expert/lib/expert/search/indexer/module_registry.ex"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"65509686b05cc9eb586555b50f7951412e9d510643a913e5bb915a962ba72bab"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/engine/lib/engine/compilation/tracer.ex: apps/engine/lib/engine/compilation/tracer.ex changed 4 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 3 (its worst body is Tracer.trace at line 35), 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(expert): resolve imported calls from the compiler\u0027s trace (#971)\u201D; \u201Cfix: diagnostics take a long time to update (#871)\u201D; \u201Cfix: index macro-generated definitions from compiler traces (#856)\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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 15:49:09 \u002B00:00\u0027 --until=\u00272026-11-12 15:49:09 \u002B00:00\u0027 --full-history --no-merges -- apps/engine/lib/engine/compilation/tracer.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":"apps/engine/lib/engine/compilation/tracer.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba249d9a5c144061606d43a738d8e64f577b93152aa77f4c7eb1dd1c3de9b6bf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: apps/engine/lib/engine/code_mod/format/cache.ex: apps/engine/lib/engine/code_mod/format/cache.ex changed 3 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 3 (its worst body is Cache.fetch_formatter at line 66), 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: resolve the right formatter for each file (#880)\u201D; \u201Cchore(revert): prevent formatter cache from forgetting the formatter for a path (#831) (#875)\u201D; \u201Cfix: prevent formatter cache from forgetting the formatter for a path (#831)\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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 15:49:09 \u002B00:00\u0027 --until=\u00272026-11-12 15:49:09 \u002B00:00\u0027 --full-history --no-merges -- apps/engine/lib/engine/code_mod/format/cache.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":"apps/engine/lib/engine/code_mod/format/cache.ex"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db865ffa64c2a763f5238a562ddbae602b072f51cfabc44a98dd9345283ba07"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 11 significant file(s) lose their only recent owner: apps/expert/lib/expert/search/indexer/analysis/imports.ex, apps/expert/lib/expert/provider/handlers/call_hierarchy.ex, apps/expert/lib/expert/code_intelligence/variable.ex, apps/engine/lib/engine/modules.ex, apps/expert/lib/expert/search/indexer/extractors/variable.ex, apps/engine/lib/engine/code_mod/directives.ex, apps/expert/lib/expert/search/indexer/extractors/ex_unit.ex, apps/expert/lib/expert/search/indexer/quoted.ex (\u002B3 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3b2008d4b140e0b50dbe355313d7f3c2cf2e05f9f2c0c46d90bc24b240f1f4db"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 5 significant file(s) lose their only recent owner: apps/expert/benchmarks/indexer_refresh_index.exs, apps/engine/lib/engine/code_intelligence/declaration.ex, apps/expert/benchmarks/indexer_replace_index.exs, apps/expert/benchmarks/indexer_source_keys.exs, apps/expert/lib/expert/provider/handlers/signature_help.ex. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"859da58844f08f7dbeb0e3bde7d8440e03713d85a529435fd423b8236b6c4334"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (18 single-owned of 170 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 170 of the 378 production source files in this repository met that bar). They are anonymized user #3 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: apps/engine/lib/engine/code_intelligence/heex.ex, apps/forge/lib/forge/document/line_parser.ex."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Remove char_list type on v2.0 \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":"apps/forge/src/future_elixir.erl"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adddda7aba508df0a5ebddf6a7bc8dd9a40f8730e369f366999a3a7b13bde42"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Remove Erlang/OTP 26\u002B checks \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":"apps/forge/src/future_elixir.erl"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe9ee68c4b1fd129b2c869d94d697c8ea8fc7a7f3f3662bf35804b88788dc21"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Delete prim_tty branches on Erlang/OTP 26. \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":"apps/forge/src/future_elixir.erl"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7da1a768899813e65b8e2906fa2abec2118675923e39d9b508f31098a124bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Remove me on Elixir v2.0. \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":"apps/forge/src/future_elixir_errors.erl"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f615497bde30f28596bc7987c343431b56fbcf72e342820187c8adcd0a16e95"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Remove this on Elixir v2.0 \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":"apps/forge/src/future_elixir_interpolation.erl"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"70202ded82d13506cde24e1ff71a1ff8baea60f5f9d635fcd8bfdcfc648e5266"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Remove deprecated sequences on v2.0 \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":"apps/forge/src/future_elixir_interpolation.erl"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc9f74d5dfd60963c37404dc0894a5e19d8bfb913f29db3c5876f973a4c1b3b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Remove me in Elixir v2.0 \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":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c87160e17893b83864f15a6be033173a69ed9b82d1f06f562365e80b15caa0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Remove me in Elixir v2.0 \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":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d83353be1075b7973fcdb8e26415ee966a423b57861e88c47f553edb547560e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Remove these deprecations on Elixir v2.0 \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":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e17c6ac6a0fbaa15e4d13c71e1e45f477e9901782dc212c9537e2f9ab9648b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Turn into an error on v2.0 \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":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c0a7bb59f51bc335dd3fbbc58ce381e648d936b22498b29fe663e1f8b52f9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Turn into an error on v2.0 \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":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b08b5171854d27869163fa510c4688907821995d6f38d1a43ff06d55313839"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Remove warn and everywhere it is set in v2.0 \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":"apps/forge/src/future_elixir.hrl"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0967fb90e263c9a105dffd02676a497dea674072350834fb9b554fff03121f3f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Make this option have no effect on Elixir v2.0 \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":"apps/forge/lib/future/code.ex"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a07150a47f41aedb81132bc28e09fe5f6878880ede1b98e2f3617c31f91b7d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Fix this \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":"apps/engine/test/engine/code_action/handlers/replace_remote_function_test.exs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42cecf140e9d98134db212e0ae4e15fb769e473687ebc34536bc76f7d043885"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Fix this \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":"apps/engine/test/engine/code_action/handlers/replace_remote_function_test.exs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cac78ef155960d3a74d073580b4fa25fb520828629635ceedd209c6103a495"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Fix this \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":"apps/engine/test/engine/code_action/handlers/replace_with_underscore_test.exs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"91990a2ff2380cb87a52915fbe4cefa072c25143469f939361b16a1b4affe688"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix \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":"apps/engine/test/engine/code_action/handlers/replace_with_underscore_test.exs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5f237cc20bb6089a5a0197e300243b2c01540abddf8eace26fadde6449d251"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: This fixes ElixirSense struct completions for certain cases. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/completion.ex"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee50f58143bf5f5097872f78b32b0567b8a3206b348adcdd360a17919ff2753"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Deprecate me in Elixir v1.18. \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":"apps/engine/benchmarks/data/enum.ex"},"region":{"startLine":2404}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a305f0e5ce52527e9790c0cd230c5e94dba348b5748202a23ba0e3672a674d2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Deprecate me in Elixir v1.18. \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":"apps/engine/benchmarks/data/enum.ex"},"region":{"startLine":4469}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c91777343924a4e7ea7b649c48c73735a0dfd0b537ab0a26b95d2323ecb473"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Deprecate me in Elixir v1.18. \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":"apps/engine/benchmarks/data/enum.ex"},"region":{"startLine":4545}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb82d44ee5f294700e7e33f78c004e04ec4486287b4d7cda4e496ee0e761051"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Deprecate negative steps on Elixir v1.16 \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":"apps/engine/benchmarks/data/enum.ex"},"region":{"startLine":2972}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7329a5e15b07ebc05a3fa02953c7eae0357a8bdc48aedc4046ee064e78c6908"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Support negative steps as a reverse on Elixir v2.0. \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":"apps/engine/benchmarks/data/enum.ex"},"region":{"startLine":2973}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71f9dde3ea3b2d4991c327e04e9eb3fdd27105ec3bc0798f18368c49bc3f3cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Remove me on v2.0 \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":"apps/engine/benchmarks/data/enum.ex"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"29677825a4ed9c0ff0f053c561d56b4c9b54ce436e5e4c7084cf6b9340e9fad7"}},{"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 \u0060apps/expert/mix.exs\u0060 makes this repository a deployable product (line 16)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/mix.exs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c04f3732760aa75ddde041cc37472c6f423e821dc33985076d53a84e132034"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 3 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060apps/expert\u0060 (22121 LoC, 190 module-visible types across 32 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 7 of 170 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 170 of the 378 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: apps/expert/lib/expert/code_intelligence/hex.ex, apps/engine/lib/engine/deps.ex, apps/expert/lib/expert/code_intelligence/hex/api.ex, apps/expert/lib/expert/code_intelligence/hex/cache.ex, apps/expert/lib/expert/code_intelligence/completion/translations/hex_version.ex, apps/expert/lib/expert/code_intelligence/hex/hover.ex, apps/expert/lib/expert/code_intelligence/deps.ex. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/lib/expert/code_intelligence/hex.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4695cf51305a1c66d6abc332fb0d5ac3c661288b61ec424c9b2f727950852b02"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/lib/expert/code_intelligence/hex/api.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"775b3c378c2bac6c9f9b2d734fcaa186e88247dac9ae06b15fc73378bf47ae66"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/deps.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b73f14dc80b733cd430a73b679b2cea6f90817ff274a79ecb76cef43facb098"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/lib/expert/code_intelligence/hex/cache.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cb6946be5c30200243a2d9651b6733e3b224bad66f1bd578eb674110d2cf59"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/lib/expert/code_intelligence/completion/translations/hex_version.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06986b028c03d529c4af64cafebe6cc9d3b525a552370e9175c0ff33e6131e4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/lib/expert/code_intelligence/hex/hover.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d0a71b859b0f32ec3cd6434371e76b3d6b8dfe76a1a369cefe199985a4bd65"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/lib/expert/code_intelligence/deps.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b55bb4ae67914f4429a4f0268683d521d80b19b0f03e9045b4d43cc60544b3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: builder.ex \u2194 build_engine.exs: \u0060apps/expert/lib/expert/engine_node/builder.ex\u0060 and \u0060apps/expert/priv/build_engine.exs\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006028d76cea\u0060 fix: mix and hex isolation (#975); \u00602b307c9e\u0060 fix: engine build crashes when changing tooling versions (#710); \u00605c65a97b\u0060 fix: build engines to \u0060:user_cache\u0060 instead of \u0060:user_data\u0060 (#467) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/lib/expert/engine_node/builder.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ddc222b673de36650ed8c1138ece5fcc2bc997dfb71e6b0d63c3dcd5805b09"}},{"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":"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":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 4 application file(s) sit at the repository root beside the build and tooling files (\u0060matrix.exs\u0060, \u0060mix_credo.exs\u0060, \u0060mix_dialyzer.exs\u0060, \u0060mix_includes.exs\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060MapSet.member?(period_positions, first_match_position - 1) and match_end == subject_length\u0060 appears character-identically in 2 files \u2014 apps/engine/lib/engine/search/fuzzy/scorer.ex, apps/expert/lib/expert/search/fuzzy/scorer.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":"apps/engine/lib/engine/search/fuzzy/scorer.ex"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"855379431b6602aad928a9a84a8ba0c62d841364c3040124d112da3632423219"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060String.starts_with?(string_name, \u0022sigil_\u0022) and arity in [1, 2]\u0060 appears character-identically in 2 files \u2014 apps/engine/lib/engine/analyzer/imports.ex, apps/expert/lib/expert/search/indexer/analysis/imports.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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaa2f51513f832ba464cedd8efbc3dab5a90964a5f0e8f738cfec52281b64d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_list(updated_entries) and is_list(paths_to_clear)\u0060 appears character-identically in 2 files \u2014 apps/expert/lib/expert/search/store/backends/sqlite.ex, apps/expert/lib/expert/search/store/state.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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf2734c77856757fdc908bf38540d7da1f7974fdcc1cffc71ad28a3ae4b6e17"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_list(use.imported_mfas) and Position.compare(use.range.end, position) in [:lt, :eq]\u0060 appears character-identically in 2 files \u2014 apps/engine/lib/engine/analyzer/imports.ex, apps/expert/lib/expert/search/indexer/analysis/imports.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":"apps/engine/lib/engine/analyzer/imports.ex"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec81e9d31ed5379b21bb70b870770e0ec1106508615f6903f6dcdb49a6872a0"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":3,"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."]}]}