{"$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":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"CompletionEngine.do_expand (cyclomatic 38): CompletionEngine.do_expand has cyclomatic complexity 38 (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/elixir_ls_utils/lib/completion_engine.ex"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"459f8fad2266d82f86c62323a24a917003febabea2991450d1612ade29b0e806"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestHandler.format_environment_result (cyclomatic 27): RequestHandler.format_environment_result has cyclomatic complexity 27 (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/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced9c39db57b7eddc6bca9d0c0c8ead4bf16420de0f7eee2e716cc8a0db5be9f"}},{"ruleId":"D1","level":"warning","message":{"text":"Mix.install (cyclomatic 26): Mix.install has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/installer.exs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"9234bc6d6735287a2de1744ff9bf398be70a7b5186e6ec4841b2162a7f290f34"}},{"ruleId":"D1","level":"warning","message":{"text":"CompletionEngine.get_module_funs (cyclomatic 25): CompletionEngine.get_module_funs has cyclomatic complexity 25 (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/elixir_ls_utils/lib/completion_engine.ex"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f7739c0b4166daa8a1db3394f44b700f06ee6cf8f262906803dc22c01d89fb"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectionRanges.ast_node_ranges (cyclomatic 23): SelectionRanges.ast_node_ranges has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/selection_ranges.ex"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b38929eb575d1658a703243f5675c8265490e30a274ff673ad0f67b322f3821"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.launch (cyclomatic 22): Server.launch has cyclomatic complexity 22 (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/debug_adapter/lib/debug_adapter/server.ex"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc71f03c77927b7bf81cfa61c83984160ab14825406d70a5fbb72eb5949b25bf"}},{"ruleId":"D1","level":"warning","message":{"text":"Completion.completion (cyclomatic 22): Completion.completion has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/completion.ex"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6bc995c4690c2f94da5bb7f0c8f9e3d220e7396a25c9edc83a54dada9ca67f"}},{"ruleId":"D1","level":"warning","message":{"text":"Locator.find (cyclomatic 22): Locator.find has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/references/locator.ex"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d4d32554e26e35caf78d83f14850cada48ffe35b53bdfd052a97d636515eb3"}},{"ruleId":"D1","level":"warning","message":{"text":"LlmDocsAggregator.aggregate_module_docs (cyclomatic 21): LlmDocsAggregator.aggregate_module_docs 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/language_server/lib/language_server/providers/execute_command/llm_docs_aggregator.ex"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db47edd96702bf552c2ed25adab78386ea160b66503858e76cf6416b9d916a6"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestHandler.format_single_doc_result (cyclomatic 18): RequestHandler.format_single_doc_result has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0a7fc07fc9d2b86679ff75d71cf39d325cc19babaadcb9ce8e87cb2720d00e"}},{"ruleId":"D1","level":"warning","message":{"text":"Callbacks.add_callbacks (cyclomatic 18): Callbacks.add_callbacks has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/completion/reducers/callbacks.ex"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c954723a2748b2ac63c3cf00cd47a2f2f2cd141f472383d4b5b0b1c54218d56b"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestHandler.format_dependency_section (cyclomatic 17): RequestHandler.format_dependency_section has cyclomatic complexity 17 (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/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"509668efdbc3b99ad6dfa96e36f2a7eca5a21665c1e96fc6a24f821862f1ccad"}},{"ruleId":"D1","level":"warning","message":{"text":"CompletionEngine.get_metadata_module_funs (cyclomatic 16): CompletionEngine.get_metadata_module_funs 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/elixir_ls_utils/lib/completion_engine.ex"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e3204939705423abbd4eb8073e067fb9a8f622681f5260850b4a0bbb231b12"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestHandler.format_type_info_result (cyclomatic 16): RequestHandler.format_type_info_result has cyclomatic complexity 16 (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/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"7767b5bda0b8d079021fac9f50bced5c1a1c45ea5c0fe7a0d5fa9f360230abfd"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionEngine.get_module_funs (cognitive 58): CompletionEngine.get_module_funs has cognitive complexity 58 (threshold 15). Drivers by points: if/else 45, match/switch 11, boolean chains 2 (nesting depth added 24). 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/elixir_ls_utils/lib/completion_engine.ex"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ca3da8c5e53563296a99d9a5beb8adb8fce79678acda4239ece7fe9e72c16f"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHandler.format_environment_result (cognitive 49): RequestHandler.format_environment_result has cognitive complexity 49 (threshold 15). Drivers by points: if/else 39, boolean chains 10 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"787a64d30aef887d58b5458aaf63e0991d965098e59b7d252e80bb8437059f24"}},{"ruleId":"D2","level":"warning","message":{"text":"Mix.install (cognitive 49): Mix.install has cognitive complexity 49 (threshold 15). Drivers by points: if/else 33, boolean chains 8, match/switch 8 (nesting depth added 22). 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":"scripts/installer.exs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5551aabb52ca4c1b77701a584438b6f990e855e307f5b51a1438012053646a3"}},{"ruleId":"D2","level":"warning","message":{"text":"LlmDocsAggregator.aggregate_module_docs (cognitive 38): LlmDocsAggregator.aggregate_module_docs has cognitive complexity 38 (threshold 15). Drivers by points: if/else 25, match/switch 10, error handling 2, boolean chains 1 (nesting depth added 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/language_server/lib/language_server/providers/execute_command/llm_docs_aggregator.ex"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f00689a73fcdebd2e5dab90284421a1b76db27936991be5bfe5108e708dc74b"}},{"ruleId":"D2","level":"warning","message":{"text":"Completion.completion (cognitive 33): Completion.completion has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22, match/switch 6, error handling 3, boolean chains 2 (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/language_server/lib/language_server/providers/completion.ex"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a8022b3cbf12b8622843f80827a58ae79e41ff2020e97c2078fc211bcc28ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.launch (cognitive 29): Server.launch has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19, boolean chains 7, match/switch 2, error handling 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/debug_adapter/server.ex"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c734aeb3737ba652e38bd0265da8860dc236cf43b8f8e0807af2dd34b949ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Callbacks.add_callbacks (cognitive 29): Callbacks.add_callbacks has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19, boolean chains 9, match/switch 1 (nesting depth added 7). 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/language_server/lib/language_server/providers/completion/reducers/callbacks.ex"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"18282baf1b42eebcc5580f7f265a9a750781c173f675e75bbac146caad330f8a"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionEngine.get_metadata_module_funs (cognitive 28): CompletionEngine.get_metadata_module_funs has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 13, if/else 8, boolean chains 5, error handling 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/elixir_ls_utils/lib/completion_engine.ex"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36d43d0d3c10edc2784d5424f8d6c733b9f9b5e0eedaabf601fdce2563ce7da"}},{"ruleId":"D2","level":"warning","message":{"text":"Locator.find (cognitive 28): Locator.find has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14, match/switch 11, boolean chains 3 (nesting depth added 9). 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/language_server/lib/language_server/providers/references/locator.ex"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"643276fe1f8eae0a45f3634f761d6a7b0ec37e6d367ae394bda9580f8e76f5a4"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionRanges.ast_node_ranges (cognitive 27): SelectionRanges.ast_node_ranges has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 15, if/else 10, match/switch 2 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/selection_ranges.ex"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"0531addadb856fd553ac18960919aa1caaffe76c5409797910a898d85e4042f3"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHandler.format_type_info_result (cognitive 26): RequestHandler.format_type_info_result has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cf7f936a31ab2cb2c584eabac8f21e4208496c594438aabdbf357d90db6a07"}},{"ruleId":"D2","level":"warning","message":{"text":"Locator.find_outgoing_calls_in_metadata (cognitive 26): Locator.find_outgoing_calls_in_metadata has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, boolean chains 7, match/switch 4 (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/language_server/lib/language_server/providers/call_hierarchy/locator.ex"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"889673a2026a468671c2f19b70ad026e8994629fd71458122abd55d6e1bca438"}},{"ruleId":"D2","level":"warning","message":{"text":"Signature.find_function_signatures (cognitive 26): Signature.find_function_signatures has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 14, if/else 11, boolean chains 1 (nesting depth added 14). 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/language_server/lib/language_server/providers/signature_help/signature.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"503ceaa46dd69c19e4f61ae4622c57a1f493ea0821c5cd892bb4ad9bdc38e810"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHandler.format_single_doc_result (cognitive 25): RequestHandler.format_single_doc_result has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, boolean chains 5, match/switch 1 (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/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac84a2cb6e8dcef3c9364e4536ae65237e48ddda55e670a2cc0c0d5e96d6d82"}},{"ruleId":"D2","level":"warning","message":{"text":"LlmDocsAggregator.get_documentation (cognitive 25): LlmDocsAggregator.get_documentation has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 13, if/else 9, boolean chains 3 (nesting depth added 10). 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/language_server/lib/language_server/providers/execute_command/llm_docs_aggregator.ex"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cec36dfe8f01f58c4bf24b61fea555a998aa45acd48bc69881ee2b8b3e3713c"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHandler.format_dependency_section (cognitive 24): RequestHandler.format_dependency_section has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, boolean chains 8. 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/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1dea005a0b2341e00e95ab8128ae6c89a87b68e917fdbb258d77eb87b77111"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.set_project_dir (cognitive 24): Server.set_project_dir has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, match/switch 3 (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/language_server/lib/language_server/server.ex"},"region":{"startLine":2778}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23b8830777815dcd1e10fa0575d9a3f52f489415d9141303bdb07f0bb7d1e12"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionEngine.do_expand (cognitive 23): CompletionEngine.do_expand has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, match/switch 6 (nesting depth added 8). 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/elixir_ls_utils/lib/completion_engine.ex"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23a0f1fcce21e632276681283c5ca4682b735becbbefe84e58df409522d65ab"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownUtils.transform_ex_doc_link (cognitive 22): MarkdownUtils.transform_ex_doc_link has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, match/switch 5, boolean chains 1 (nesting depth added 6). 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/language_server/lib/language_server/markdown_utils.ex"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddfb80a1b98f11598ca8b587be782faded22920ac942a8ed38188d20b11318a"}},{"ruleId":"D2","level":"warning","message":{"text":"Completion.item_to_gen_lsp (cognitive 22): Completion.item_to_gen_lsp has cognitive complexity 22 (threshold 15). Drivers by points: if/else 22 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/completion.ex"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b24f265ae201d23bb496f9fea51117afba174305db8990e66b08fc36385e3e"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.set_settings (cognitive 22): Server.set_settings has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 3, error handling 2 (nesting depth added 7). 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/language_server/lib/language_server/server.ex"},"region":{"startLine":2361}}}],"partialFingerprints":{"codehealthFindingId/v1":"baddb43ff5afd649fa9c9cdae9fc7d3db92b76ea539eec561ef71fc9cff4fd7d"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.trigger_build (cognitive 21): Server.trigger_build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, match/switch 6, boolean chains 2 (nesting depth added 9). 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/language_server/lib/language_server/server.ex"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb768c9ad8eb70cda00f8d971883c40de673cb09003229952e827b7d0ddb2a1"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.attach (cognitive 20): Server.attach has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 4, match/switch 2, error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/debug_adapter/server.ex"},"region":{"startLine":2356}}}],"partialFingerprints":{"codehealthFindingId/v1":"397027c2d21a51eb4679dd1f4ccd3f30f9238c3de2231cf358690c645ea40765"}},{"ruleId":"D2","level":"warning","message":{"text":"Record.get_field_types (cognitive 19): Record.get_field_types has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 4, match/switch 3 (nesting depth added 5). 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/language_server/lib/language_server/providers/completion/reducers/record.ex"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b39895ab33eb33dcb345a0b702c69f6973b01b4e02cc650d2b13f938471a69a"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionRanges.container_ranges (cognitive 19): SelectionRanges.container_ranges has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, boolean chains 5, match/switch 5 (nesting depth added 4). 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/language_server/lib/language_server/providers/selection_ranges.ex"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4722ea39591ef6db41ca88e5dba3167a4863342e2cb843aaae72b80703abcbb"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSymbols.index (cognitive 19): WorkspaceSymbols.index has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, match/switch 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/workspace_symbols.ex"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be1ee40f48b247af42cc71f31444dd0924f2ed93be35822ec4947b32e524997"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handle_request_packet (cognitive 19): Server.handle_request_packet has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, error handling 5, match/switch 4, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/server.ex"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf60dfeed5affc12909447756cbead660983aae53658ca648fc3aaadf1307178"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownUtils.transform_ex_doc_links (cognitive 18): MarkdownUtils.transform_ex_doc_links has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 4, boolean chains 2, match/switch 1 (nesting depth added 8). 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/language_server/lib/language_server/markdown_utils.ex"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccd5bdcade6b5710e323fb1468ba772b5bc0439b378338637967dc83384283d"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentSymbols.extract_symbol (cognitive 18): DocumentSymbols.extract_symbol has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 9, if/else 7, boolean chains 2 (nesting depth added 5). 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/language_server/lib/language_server/providers/document_symbols.ex"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e8856910caff974aebf28a846118d73026f104844aa3c49c6f83e90a80da44"}},{"ruleId":"D2","level":"warning","message":{"text":"Location.find_elixir_file (cognitive 17): Location.find_elixir_file has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, match/switch 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/location.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2b0e623730f85d7ba7326365cf9fd0537e2cf9bdeaa9629e96c6b779827be4"}},{"ruleId":"D2","level":"warning","message":{"text":"LlmImplementationFinder.read_source_at_location (cognitive 17): LlmImplementationFinder.read_source_at_location has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, match/switch 6, boolean chains 2 (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/language_server/lib/language_server/providers/execute_command/llm_implementation_finder.ex"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0014ca4eb028ed6e576ff6b544b29c8ce18cda184ee89f2ef59f67284261b1cc"}},{"ruleId":"D2","level":"warning","message":{"text":"Docs.get_all_docs (cognitive 17): Docs.get_all_docs has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 10, if/else 5, boolean chains 2 (nesting depth added 5). 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/language_server/lib/language_server/providers/hover/docs.ex"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bc22cd64f6ff149ea1f7bc581569363c2dc9b3ac82a339dea1d21376cefd4e"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handle_call (cognitive 17): Server.handle_call has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 3, boolean chains 2, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/server.ex"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4467476c04dfc5b8dfc5865b428cf90f39405fd6fd7cf8050ff149cb5c26cfce"}},{"ruleId":"D2","level":"warning","message":{"text":"LlmDefinition.read_definition_source (cognitive 16): LlmDefinition.read_definition_source has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, match/switch 6, boolean chains 1 (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/language_server/lib/language_server/providers/execute_command/llm_definition.ex"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"191eca0ebbd959a1e0d42e60ac0f90e9c5d5ba7f3a05d09f9453e3c373d687cf"}},{"ruleId":"D2","level":"warning","message":{"text":"Docs.all (cognitive 16): Docs.all has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 9, if/else 6, boolean chains 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/hover/docs.ex"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85a59157151cf46241aa74c0551b91d4c98ad54fa66d67e03391400f37bd98e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: debug_adapter/server.ex: FileTooLong \u2014 2545 significant lines (blank, comment-only and punctuation-only lines excluded). 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/debug_adapter/lib/debug_adapter/server.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24444eed846dc7aff6ded0ef85e7453c52a68eced7ebc223481e68e942c96ce9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: language_server/server.ex: FileTooLong \u2014 2216 significant lines (blank, comment-only and punctuation-only lines excluded). 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/language_server/lib/language_server/server.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31536278c8506a8cdac09b487b91dc2867b6d8c99c73e2dfa5e01b5759ee606"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/completion_engine.ex: FileTooLong \u2014 1688 significant lines (blank, comment-only and punctuation-only lines excluded). 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/elixir_ls_utils/lib/completion_engine.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d814a35ec9ada4e677b09a368e65f4b20c169fe2e7674f0ff7538c959ab685"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/completion.ex: FileTooLong \u2014 1419 significant lines (blank, comment-only and punctuation-only lines excluded). 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/language_server/lib/language_server/providers/completion.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e0fe0da01857a033718266dcfe557bc8292c026b58d08052e8970f2653efe0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Server: TooManyMethods \u2014 80 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/debug_adapter/server.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"384a6bf88c59399dd6c14a03b1630a4dfcdcf8d7e6a9958d353bf8d4fe89c2f6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CompletionEngine: TooManyMethods \u2014 76 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/elixir_ls_utils/lib/completion_engine.ex"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"525f9907206ee510a3d20a89a09b44bd8f2b1ded55947cd931791cd0993c5f48"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/request_handler.ex: FileTooLong \u2014 902 significant lines (blank, comment-only and punctuation-only lines excluded). 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/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e217ba0b0be44ec4632a7c67a9005b901969506cdb702b13481ae2f388ccd745"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Server: TooManyMethods \u2014 50 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/server.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c693dfba6de960d726421a186bfa1f3a4fc70aa90342964a94338e0ebb38682"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mix_tasks/format.ex: FileTooLong \u2014 822 significant lines (blank, comment-only and punctuation-only lines excluded). 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/language_server/lib/language_server/mix_tasks/format.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee869c0d3484f529f388418d717a98237f59689d15d889d6240ca6f840babdb0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InlayHints: TooManyMethods \u2014 47 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/inlay_hints.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b4c3cf5bd7ae2101356c6b77ad0164a154715572882ea3612951b6abe56809"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Completion: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/completion.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc85870ad7ad4a0b8419ed092d920d9a285e6c5f23f18e78b0b8b1277c2393b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hover/docs.ex: FileTooLong \u2014 623 significant lines (blank, comment-only and punctuation-only lines excluded). 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/language_server/lib/language_server/providers/hover/docs.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d96689572479b268d52ac7b0d517994a3ad6a643a74d7496cffdd20c028336"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/inlay_hints.ex: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded). 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/language_server/lib/language_server/providers/inlay_hints.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6889b06f6221045ca0456296bb95f61437af75de21a3cba57332b9d26b281557"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: language_server/build.ex: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded). 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/language_server/lib/language_server/build.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72f3b2ec31bc5796a90d3ebf91d8f4c987df59a6d49ae5e2734807f72fd9f57"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: execute_command/llm_docs_aggregator.ex: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded). 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/language_server/lib/language_server/providers/execute_command/llm_docs_aggregator.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76eb3dff7881608d0aa4239a98396056c7b5c2ded0813bc1c345dc4d8c9289bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/workspace_symbols.ex: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded). 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/language_server/lib/language_server/providers/workspace_symbols.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c548d4c874c6a64f770f85dddfba44e282a1e68e5b57ca77a8d7f86c6cbacf77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): apps/debug_adapter/lib/debug_adapter/breakpoint_condition.ex:78-100 | apps/debug_adapter/lib/debug_adapter/exunit_formatter.ex:24-46 | apps/debug_adapter/lib/debug_adapter/server.ex:256-278 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/debug_adapter/breakpoint_condition.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b66b07e95ae2b01bba731a09c78a6b44952dce28b4ed072da893e5ecf8bb1d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): apps/language_server/lib/language_server/build.ex:137-159 | apps/language_server/lib/language_server/build.ex:321-343 \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/language_server/lib/language_server/build.ex"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7aeb881b202b4f544164b6866e6db6d34c8573b3fc2c4440d63d61612794060"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): apps/language_server/lib/language_server/dialyzer_incremental.ex:80-101 | apps/language_server/lib/language_server/ex_unit_test_tracer.ex:45-66 | apps/language_server/lib/language_server/mix_project_cache.ex:149-170 | apps/language_server/lib/language_server/parser.ex:80-101 | apps/language_server/lib/language_server/providers/workspace_symbols.ex:96-117 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/dialyzer_incremental.ex"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d910dfa22eaeba0cc83e4a05fca899cf586f4078ac946d63b2bcea5a1ed7358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): apps/language_server/lib/language_server/server.ex:2649-2675 | apps/language_server/lib/language_server/server.ex:2704-2725 | apps/language_server/lib/language_server/server.ex:2751-2772 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/server.ex"},"region":{"startLine":2649}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f7666b291f1f11949749ed2a7f05c8c98491d7bdeb3b8aefe074b7dd08cbe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): apps/language_server/lib/language_server/mcp/request_handler.ex:33-53 | apps/language_server/lib/language_server/mcp/request_handler.ex:70-90 | apps/language_server/lib/language_server/mcp/request_handler.ex:113-134 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"571546977295aa3d76d95f28d505aa5185e9e68c5b0cebfa9098d296ba7590bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): apps/language_server/lib/language_server/providers/execute_command/llm_module_dependencies.ex:317-337 | apps/language_server/lib/language_server/providers/execute_command/llm_module_dependencies.ex:419-439 \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/language_server/lib/language_server/providers/execute_command/llm_module_dependencies.ex"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b14c943de20e802ce9ef23aeec23b81848f07590c0bf7a15838d24d8950311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): apps/language_server/lib/language_server/mcp/request_handler.ex:216-235 | apps/language_server/lib/language_server/mcp/request_handler.ex:251-270 \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/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"4891ff8dfbd1589245b1aa9313c16410856f3442bc1eb1cd4e7b8ba0ec09b7b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): apps/language_server/lib/language_server/server.ex:934-957 | apps/language_server/lib/language_server/server.ex:1102-1121 \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/language_server/lib/language_server/server.ex"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"da42c0cf2bf660b00171f74c3a987d4374cc4efef9789f1f8174e3c0b0272366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): apps/language_server/lib/language_server/build.ex:455-473 | apps/language_server/lib/language_server/build.ex:483-501 | apps/language_server/lib/language_server/dialyzer_incremental.ex:45-64 | apps/language_server/lib/language_server/providers/completion/generic_reducer.ex:50-68 | apps/language_server/lib/language_server/providers/completion/generic_reducer.ex:79-97 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/build.ex"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a8cf912be98e2b5f840787a5862196d70a0551a86c7931d0fd1efb30d24c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/debug_adapter/lib/debug_adapter/server.ex:583-601 | apps/debug_adapter/lib/debug_adapter/server.ex:3330-3348 \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/debug_adapter/lib/debug_adapter/server.ex"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6d57da0f1d8d73a431c73af107c5e5c98fc7ea26e43f26a1fcb0017f540199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/language_server/lib/language_server/providers/execute_command/llm_module_dependencies.ex:170-188 | apps/language_server/lib/language_server/providers/execute_command/llm_module_dependencies.ex:259-277 \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/language_server/lib/language_server/providers/execute_command/llm_module_dependencies.ex"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a8febd60fadcf5538fd7f4f1941357e9a7a00aa1559fbfdfd896d470ea1542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/debug_adapter/lib/debug_adapter/server.ex:2286-2303 | apps/debug_adapter/lib/debug_adapter/server.ex:2445-2462 \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/debug_adapter/lib/debug_adapter/server.ex"},"region":{"startLine":2286}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacaf9e3aec50db4949d05d6797ed936c8ca4e74f68837702afb393e61fca4ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/language_server/lib/language_server/server.ex:237-254 | apps/language_server/lib/language_server/server.ex:1032-1049 \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/language_server/lib/language_server/server.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"40534a539f6aa08d53ebe74967cd80ae970cff08a623f45efa91dd1d5b4dd1e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/language_server/lib/language_server/mcp/request_handler.ex:344-360 | apps/language_server/lib/language_server/mcp/request_handler.ex:437-453 \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/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c74bb04b5c7724cd119f5b27bf1319a3628fd984863d230f0616236ed712da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/language_server/lib/language_server/providers/execute_command/llm_definition.ex:208-224 | apps/language_server/lib/language_server/providers/execute_command/llm_implementation_finder.ex:166-182 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/execute_command/llm_definition.ex"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e80adbbb0df14d61b37578194f4604513165ae7a5796c7609ae1eb48e737d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/language_server/lib/language_server/providers/declaration/locator.ex:241-255 | apps/language_server/lib/language_server/providers/definition/locator.ex:367-381 \u2014 \u0060apps/language_server/lib/language_server/providers/declaration/locator.ex\u0060 and \u0060apps/language_server/lib/language_server/providers/definition/locator.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/declaration/locator.ex"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3530e662675cd1e9789b1c7a8060406189919f6f510ab22471695aaf4916a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/language_server/lib/language_server/providers/execute_command/llm_module_dependencies.ex:350-363 | apps/language_server/lib/language_server/providers/execute_command/llm_module_dependencies.ex:452-465 \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/language_server/lib/language_server/providers/execute_command/llm_module_dependencies.ex"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"d285e59e32cf696cc5f19f417c5525832b1ba77ec681f286a86579db57e543a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/language_server/lib/language_server/providers/execute_command/manipulate_pipes.ex:93-106 | apps/language_server/lib/language_server/providers/execute_command/manipulate_pipes.ex:137-150 \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/language_server/lib/language_server/providers/execute_command/manipulate_pipes.ex"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ea6f4cb6f94c1064b25632dc5980fcc9ef5734d7569e01d55bc09693b6e8a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/debug_adapter/lib/debug_adapter/server.ex:929-941 | apps/debug_adapter/lib/debug_adapter/server.ex:1015-1027 \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/debug_adapter/lib/debug_adapter/server.ex"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba69b1976edfd956b6c599afe3e3f9adeb9ccbf4cd23c510fceafabb1ebd0918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/language_server/lib/language_server/providers/declaration/locator.ex:47-59 | apps/language_server/lib/language_server/providers/definition/locator.ex:65-77 \u2014 \u0060apps/language_server/lib/language_server/providers/declaration/locator.ex\u0060 and \u0060apps/language_server/lib/language_server/providers/definition/locator.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/declaration/locator.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7155d4d6dbd339491b745197431619e6a371c7cf1dbb520057ac17c3cac8772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/language_server/lib/language_server/lsp/protocol/structures/notebook_document_sync_options.ex:54-64 | apps/language_server/lib/language_server/lsp/protocol/structures/notebook_document_sync_registration_options.ex:48-58 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/notebook_document_sync_options.ex"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b45bad4b92df5ba5ba40582fbb15e6b2606fb2c580676283ccb327e538bc10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/language_server/lib/language_server/lsp/protocol/structures/related_full_document_diagnostic_report.ex:45-55 | apps/language_server/lib/language_server/lsp/protocol/structures/related_unchanged_document_diagnostic_report.ex:45-55 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/related_full_document_diagnostic_report.ex"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3a775e88ca2ebff699405258924ffab9a52227d0fed7d69a7536f23d999482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/language_server/lib/language_server/providers/call_hierarchy/locator.ex:182-194 | apps/language_server/lib/language_server/providers/call_hierarchy/locator.ex:206-216 \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/language_server/lib/language_server/providers/call_hierarchy/locator.ex"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f22ef6f9c2efc5652cf9c53d37ee371e74c056d90ee2aa5ef82b890c36e0be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/language_server/lib/language_server/providers/call_hierarchy/locator.ex:313-323 | apps/language_server/lib/language_server/providers/references/locator.ex:117-130 \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/language_server/lib/language_server/providers/call_hierarchy/locator.ex"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"1955684153fe76d2d7db8569b4a4a1b46cb6c401c094b1e14e2fc27edaf4eb18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/language_server/lib/language_server/providers/completion.ex:391-401 | apps/language_server/lib/language_server/providers/completion.ex:415-425 \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/language_server/lib/language_server/providers/completion.ex"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8bec0cc688a8ae66e38a555614fc3bd653403ad62fa8c4ff746c917e37d4ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/language_server/lib/language_server/providers/declaration/locator.ex:30-40 | apps/language_server/lib/language_server/providers/definition/locator.ex:29-39 \u2014 \u0060apps/language_server/lib/language_server/providers/declaration/locator.ex\u0060 and \u0060apps/language_server/lib/language_server/providers/definition/locator.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/declaration/locator.ex"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"03726a121183fddbe03f542092bfee78e0f841842809c07794be705cda790f06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/language_server/lib/language_server/providers/implementation/locator.ex:25-35 | apps/language_server/lib/language_server/providers/references/locator.ex:24-37 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/implementation/locator.ex"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5701dacd31acb5464267617ecccd81aa0eec6c398dc535c84db538973e4f887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/language_server/lib/language_server/providers/inlay_hints.ex:393-406 | apps/language_server/lib/language_server/providers/inlay_hints.ex:425-435 \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/language_server/lib/language_server/providers/inlay_hints.ex"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb4f9efa28ffafece56e91c84c12ad503643002ae8649afefc44592038e2f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/language_server/lib/language_server/providers/references/locator.ex:347-357 | apps/language_server/lib/language_server/providers/references/locator.ex:397-407 \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/language_server/lib/language_server/providers/references/locator.ex"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"f310285ac7ee627e62aff561cdcc662c7210b87082f479d3a353a82b668a29aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): apps/language_server/lib/language_server/providers/definition/locator.ex:118-127 | apps/language_server/lib/language_server/providers/hover/docs.ex:161-170 | apps/language_server/lib/language_server/providers/references/locator.ex:212-221 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/definition/locator.ex"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfc630dfe5504a73170ef89a498a55c2bfa8380e59f22a856839bcb63fdff47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/debug_adapter/lib/debug_adapter/exunit_formatter.ex:83-92 | apps/debug_adapter/lib/debug_adapter/exunit_formatter.ex:94-103 \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/debug_adapter/lib/debug_adapter/exunit_formatter.ex"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd086de9c9bf66f7b07dee198d2d8b183676862f1ebbf62a64405ad3a8c5e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/debug_adapter/lib/protocol/dap/requests/set_expression.ex:101-110 | apps/debug_adapter/lib/protocol/dap/requests/set_variable.ex:98-107 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/protocol/dap/requests/set_expression.ex"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"800d4ec46228a6faf59d1b90c0c7017246e31b273c71e27fec75e3262c47b0a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/language_server/lib/language_server/build.ex:343-352 | apps/language_server/lib/language_server/build.ex:414-423 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/build.ex"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2b9aaedd9d89bca9fbef48831eda66c557b4c70f950dc60ce7c2fada27d1c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/language_server/lib/language_server/location.ex:297-306 | apps/language_server/lib/language_server/location.ex:473-482 \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/language_server/lib/language_server/location.ex"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"9175087944c16609cf9ad732ede69fe26c043a3ebe0b2d9b0abfce7c1c394d3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): apps/debug_adapter/lib/protocol/dap/requests/set_breakpoints.ex:93-101 | apps/debug_adapter/lib/protocol/dap/requests/set_data_breakpoints.ex:91-99 | apps/debug_adapter/lib/protocol/dap/requests/set_function_breakpoints.ex:91-99 | apps/debug_adapter/lib/protocol/dap/requests/set_instruction_breakpoints.ex:90-98 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/protocol/dap/requests/set_breakpoints.ex"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b183b1dc22e3f68ec5a8af8c4d4626487efc520acb9b3402398b9241fce081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/language_server/lib/language_server/providers/call_hierarchy/locator.ex:20-28 | apps/language_server/lib/language_server/providers/references/locator.ex:28-41 \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/language_server/lib/language_server/providers/call_hierarchy/locator.ex"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8adb4b6252d772d19319812edec7495ddd243b920d6a1bc3f4dff7c9a50946bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/language_server/lib/language_server/providers/completion/reducers/returns.ex:50-58 | apps/language_server/lib/language_server/providers/completion/reducers/returns.ex:69-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/completion/reducers/returns.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9116568a7256ffef3882310e7de00a37659cf179a53ffdefa925eb9c7a25e88d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/language_server/lib/language_server/providers/hover/docs.ex:356-364 | apps/language_server/lib/language_server/providers/signature_help/signature.ex:117-125 \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/language_server/lib/language_server/providers/hover/docs.ex"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"221d3ad999fe11d374d560090f3690fb4d2974748eda24445a93799dba92dbae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/debug_adapter/lib/debug_adapter/exunit_formatter.ex:94-101 | apps/debug_adapter/lib/debug_adapter/exunit_formatter.ex:105-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/debug_adapter/exunit_formatter.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf989df60959d65f30b939ded5c6da7c333ef895698e9f5a48234296822ed17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/debug_adapter/lib/debug_adapter/exunit_formatter.ex:127-134 | apps/debug_adapter/lib/debug_adapter/exunit_formatter.ex:156-163 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/debug_adapter/exunit_formatter.ex"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bcc82c5620f05d95407f7a9071ca52840b01cf42206d2b1e61491a68de0436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/language_server/lib/language_server/providers/call_hierarchy.ex:141-148 | apps/language_server/lib/language_server/providers/call_hierarchy.ex:168-175 \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/language_server/lib/language_server/providers/call_hierarchy.ex"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf31a1ed8ce4d37e0267b91f6ce92312f7fad205ce7bfbc1ef34d98837be6469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/language_server/lib/language_server/lsp/protocol/structures/document_symbol_client_capabilities.ex:40-46 | apps/language_server/lib/language_server/lsp/protocol/structures/workspace_symbol_client_capabilities.ex:37-43 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/document_symbol_client_capabilities.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ac108885871ff9cdda34aadaccfa6de7f54c1f16e3f92a4f865667ca2206ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/language_server/lib/language_server/lsp/protocol/structures/initialize_params.ex:63-69 | apps/language_server/lib/language_server/lsp/protocol/structures/private_initialize_params.ex:61-67 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/initialize_params.ex"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ac4f928b0f3ccc3bfa2f17d08886af7fc5751cd510671cd29175793a028f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/language_server/lib/language_server/lsp/protocol/structures/semantic_tokens_client_capabilities.ex:68-74 | apps/language_server/lib/language_server/lsp/protocol/structures/semantic_tokens_options.ex:34-40 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/semantic_tokens_client_capabilities.ex"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2349c0947cce9324f8804af59bbdb8821087a5f296d3ca4a0a633a310b2b696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/language_server/lib/language_server/providers/completion.ex:743-749 | apps/language_server/lib/language_server/providers/completion.ex:1233-1241 \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/language_server/lib/language_server/providers/completion.ex"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"a565d890d275af97b647da146134c1747feeb6d9d24ddd27fda884863f49ddac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/language_server/lib/language_server/lsp/protocol/structures/semantic_tokens_options.ex:33-38 | apps/language_server/lib/language_server/lsp/protocol/structures/semantic_tokens_registration_options.ex:40-45 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/semantic_tokens_options.ex"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a654f47469f5c2a917514a51315e4923aa24081656de877e276675b43ff06c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/language_server/lib/language_server/providers/completion/reducers/returns.ex:40-45 | apps/language_server/lib/language_server/providers/completion/reducers/returns.ex:57-62 \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/language_server/lib/language_server/providers/completion/reducers/returns.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6ea3e4ca21b79b24cb4e3261764493db6c97f17f5afc67d5f1e3fa7c934cc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): apps/language_server/lib/language_server/lsp/protocol/structures/code_lens_params.ex:29-33 | apps/language_server/lib/language_server/lsp/protocol/structures/document_color_params.ex:29-33 | apps/language_server/lib/language_server/lsp/protocol/structures/document_link_params.ex:29-33 | apps/language_server/lib/language_server/lsp/protocol/structures/document_symbol_params.ex:29-33 | apps/language_server/lib/language_server/lsp/protocol/structures/folding_range_params.ex:29-33 | apps/language_server/lib/language_server/lsp/protocol/structures/semantic_tokens_params.ex:29-33 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/code_lens_params.ex"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfdfb866dee7dd871d0918b212afebd6fd71db438f2a4074b6060c644d241d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): apps/language_server/lib/language_server/lsp/protocol/structures/declaration_params.ex:27-31 | apps/language_server/lib/language_server/lsp/protocol/structures/definition_params.ex:31-35 | apps/language_server/lib/language_server/lsp/protocol/structures/document_highlight_params.ex:31-35 | apps/language_server/lib/language_server/lsp/protocol/structures/implementation_params.ex:27-31 | apps/language_server/lib/language_server/lsp/protocol/structures/moniker_params.ex:27-31 | apps/language_server/lib/language_server/lsp/protocol/structures/type_definition_params.ex:27-31 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/declaration_params.ex"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b00759927a36acf91c8dccdf5430587a781fd4a244da658174ad0908f03d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): apps/language_server/lib/language_server/lsp/protocol/structures/base_symbol_information.ex:35-39 | apps/language_server/lib/language_server/lsp/protocol/structures/call_hierarchy_item.ex:43-47 | apps/language_server/lib/language_server/lsp/protocol/structures/type_hierarchy_item.ex:44-48 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/base_symbol_information.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"274d6b0c36465cbb1a1a7d58ffeb0763c22ee9db99a52d0160b0b1d73694bbaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/debug_adapter/lib/debug_adapter/server.ex:946-950 | apps/language_server/lib/language_server/server.ex:2477-2481 \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/debug_adapter/lib/debug_adapter/server.ex"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"085a7e8e257bc92d77927a0cd375cfdc1cc601fa052a8bf9db940a5d68aad6e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/debug_adapter/lib/protocol/dap/requests/evaluate.ex:110-114 | apps/debug_adapter/lib/protocol/dap/requests/set_expression.ex:112-116 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/protocol/dap/requests/evaluate.ex"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de3ef62498555244747083a916f0bd6e8ed5427c71ce5a1198865de42635157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/debug_adapter/lib/protocol/dap/structures/goto_target.ex:41-45 | apps/debug_adapter/lib/protocol/dap/structures/stack_frame.ex:51-55 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/protocol/dap/structures/goto_target.ex"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03bb554011490beb3a767c19115590334b590828f9ddec62e28e1969acba3e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/language_server/lib/language_server/lsp/protocol/structures/call_hierarchy_incoming_calls_params.ex:31-35 | apps/language_server/lib/language_server/lsp/protocol/structures/call_hierarchy_outgoing_calls_params.ex:31-35 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/call_hierarchy_incoming_calls_params.ex"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc56fc9b57b67b92cfeef260721e24af6b0eb955daf5d7a4a9581ad8ec73c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/language_server/lib/language_server/lsp/protocol/structures/completion_options.ex:51-55 | apps/language_server/lib/language_server/lsp/protocol/structures/completion_registration_options.ex:54-58 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/completion_options.ex"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"da67154ffe8507f753ef08809a22e019d7e6e906572565616b32a749b23d47ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/language_server/lib/language_server/lsp/protocol/structures/completion_params.ex:36-40 | apps/language_server/lib/language_server/lsp/protocol/structures/reference_params.ex:35-39 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/completion_params.ex"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a3a65da46a79f6a35b3563afdceeadc8e9066a84c4d7fab090cbc086273d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/language_server/lib/language_server/lsp/protocol/structures/type_hierarchy_subtypes_params.ex:31-35 | apps/language_server/lib/language_server/lsp/protocol/structures/type_hierarchy_supertypes_params.ex:31-35 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/lsp/protocol/structures/type_hierarchy_subtypes_params.ex"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"562407fce2c6354967ed95baf021ed1f7e759fc21f34b9aae9c1feaee39d0db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/language_server/lib/language_server/providers/call_hierarchy.ex:95-99 | apps/language_server/lib/language_server/providers/references.ex:69-73 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/call_hierarchy.ex"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a5349eb8101aa7bccf56c93fed79634a9b3273184dd236ff3a12aa8d3c2505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/language_server/lib/language_server/providers/completion/reducers/callbacks.ex:47-51 | apps/language_server/lib/language_server/providers/completion/reducers/protocol.ex:44-48 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/completion/reducers/callbacks.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d91a5a9e27ff228b7027457ffc26992ee9e25f06a4add3aa783a930963512e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (141 lines \u00D7 2): apps/debug_adapter/lib/protocol/dap/requests.ex:6-146 | apps/debug_adapter/lib/protocol/dap/responses.ex:6-146 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/protocol/dap/requests.ex"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccfa71eb1b9334b3ffcd863cb19d954b4269ceb03743141f01903c8d25508bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/elixir_ls_utils/lib/completion_engine.ex: apps/elixir_ls_utils/lib/completion_engine.ex changed 12 times in last 90 days, max complexity 38. 5 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/elixir_ls_utils/lib/completion_engine.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a05f69502b613193e1486ea21d313609299424072d7c8523856ce7ed935fdda"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/language_server/lib/language_server/providers/completion.ex: apps/language_server/lib/language_server/providers/completion.ex changed 9 times in last 90 days, max complexity 26. 2 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/completion.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9953fe21fd58f9edbbabe9072263abcfdc7b78ab4aa4091d0b2f5730eaad7e7b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/language_server/lib/language_server/providers/selection_ranges.ex: apps/language_server/lib/language_server/providers/selection_ranges.ex changed 10 times in last 90 days, max complexity 23. 2 of those changes were fix/bug commits, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/selection_ranges.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d73ac8d4fe5b763cb933e9d735f33fddc55323e68a0b9310158b42136f25cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/debug_adapter/lib/debug_adapter/server.ex: apps/debug_adapter/lib/debug_adapter/server.ex changed 7 times in last 90 days, max complexity 22. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/debug_adapter/server.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e853ec2c3401f3c59395e9079d4ab39946d6bf130cdbd49a37721e8e6807feab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/language_server/lib/language_server/mcp/request_handler.ex: apps/language_server/lib/language_server/mcp/request_handler.ex changed 3 times in last 90 days, max complexity 27. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/mcp/request_handler.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"465f079cdc7a673e4d87b301131898d80d098da64e76da9b7321641aa24388ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/language_server/lib/language_server/providers/execute_command/llm_docs_aggregator.ex: apps/language_server/lib/language_server/providers/execute_command/llm_docs_aggregator.ex changed 3 times in last 90 days, max complexity 21. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/execute_command/llm_docs_aggregator.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11695ddab2ca2cd90397de043d39386eeff8adc1616351e3ccd8c3c7f7c24ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/installer.exs: scripts/installer.exs changed 2 times in last 90 days, max complexity 26. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/installer.exs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0832f2ba35eb2095900abb76a806c4f5cc91e37aec46ee116ddc34530de9cffa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: apps/language_server/lib/language_server/providers/references/locator.ex: apps/language_server/lib/language_server/providers/references/locator.ex changed 2 times in last 90 days, max complexity 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/references/locator.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e35cf4998259670661df09d6234a5894258b15983ea26e83b611d0ad476a53"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 62 significant file(s) lose their only recent owner: apps/debug_adapter/lib/debug_adapter/server.ex, apps/language_server/lib/language_server/server.ex, apps/elixir_ls_utils/lib/completion_engine.ex, apps/language_server/lib/language_server/providers/completion.ex, apps/language_server/lib/language_server/mix_tasks/format.ex, apps/language_server/lib/language_server/mcp/request_handler.ex, apps/language_server/lib/language_server/providers/inlay_hints.ex, apps/language_server/lib/language_server/providers/selection_ranges.ex (\u002B54 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dc76545a5df55341291e29b3d70a8283dc8338150932bbd495bffaeff7fdb200"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ceee73d76663034321cbd3b5bbecae8b673163039b70b12462f979a331e73d3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8eb50784ab958284eb3ecd7050384e4061ddeae0c76cf46d9d242ff3f816fc6b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a88c66a13d4e2d130cf5ec73e54b7555038420fe034c52e1c3d045558abf1d9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98bc95744487d6f8bb36ba3a49535c74c1160f6846de0c05d0a36ca260c39063"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4e5ba20d569d258ae6d0a24953bb1bf2096a834bc4a53403da7c12ca10d2411b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"20228a1fe2b7e5466f58722b56953f61b8c852b78654ab209d109b2267af5f98"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"53e31539fd6c680bc524cd465b04ae19c17835bc13d80d46925869e82647ba77"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"229f33f5083a1fefa5ebd7f3b2a50f455445c022072eadf8ca675541407f621d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a73023b5b36f095e727954d4f7cf54ed22ff6e79a6fe1926acbe9f0836e40a7f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3566a4535f32b9e3b41d1001b00837e415a5916934896370e7fc4877cd60d5f5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ec18c7e38200a3ea39c3a5970f9d5b0810fd43fe6d132e294dfa65a87ec165c2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"daae948a18470f83111830b2cedc6f73f539bbc990ec81075ead2dcc13f048e8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"18a2dbfebf25e176e952af5f8b0b1e7555b15f13bee7b0518621116da452c16d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b45f7091499101b8ad75ecb303670fa20961a083fb8f72c4bdf3524817cfac2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f8381dcce2ee6e906e34bcbf4bccbdac3eee955216dae99d1b2ce11ef12d590c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6202e3095d9dadf51969959529824acd7ae370a849a9dfd7153dacfbc81d4495"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cd5db1fb4cd9f06cbb0f46008e2ff999bb0cd93174a6471c7180873fbe50a029"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cea2f3cfe02da811795380f636cb498230fa78dad4d689aa4674c8ace837dbc2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759a17df1f5e5117e87df4298ac89d5f8bd6193e7762350791304ce9476d8510"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bec146cbce082feddbf945fdf22d83bea5f9787f475911deee9af64fec0a738d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9dc631b8e1343e2bb2bb62faede130c64994a981617c8fc5d3ff016ae4313d5c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e86442b14430206d90d80912eaa9aecfad06bb78ef7d916a3b557c285e242dd7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce293f7d098891326efb9b480aa2c17243d3e76a05f0f1cdad4cf89a19eb07cf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a43ec6777294e27f513532b438c0065f1fd20880e7e8578dd4b18890d459e024"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4757c53217c6a457ae31be4b5c011483cc5c7e52da43b8499457e426e497ce07"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"100e281a007715fdfaa3cfc33b2d7a73bc110c56d0cdd40a0f1f8be6f8824536"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1c0bdb6cb3521ce877f1cfc528e95b0ab0db6564971660242e5b133b129818b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c622bab8f3dace0cacee804422dc55592a6dcb7fd3b196d5086cd478627fe00f"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b67787f58bbdcde79a43cc08af597219f8bc8ccd5a82b8588a8f7af6b62ec402"}},{"ruleId":"D31","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":"e3456a33515efc2e2b0fc6b725fb30396a686312092c39ebaa9032146e44ed46"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 6 of 92 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 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). 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 largest first: apps/language_server/lib/language_server/providers/execute_command/manipulate_pipes.ex, apps/language_server/lib/language_server/code_unit.ex, apps/language_server/lib/language_server/providers/folding_range/indentation.ex (and 3 more). 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":"D35","level":"warning","message":{"text":"Change coupling clique: locator.ex, docs.ex, locator.ex: 3 files \u2014 \u0060apps/language_server/lib/language_server/providers/definition/locator.ex\u0060, \u0060apps/language_server/lib/language_server/providers/hover/docs.ex\u0060, \u0060apps/language_server/lib/language_server/providers/references/locator.ex\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/definition/locator.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f8a721d61d833beabe156bb81c7098bc89a8a4b9427e63ad78431e90d6f6f3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: output.ex \u2194 server.ex: \u0060apps/debug_adapter/lib/debug_adapter/output.ex\u0060 and \u0060apps/debug_adapter/lib/debug_adapter/server.ex\u0060 change together 62% of the time (10 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/debug_adapter/output.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"505655935e27320c7bba022c8bcfd6d1b10ed0e6bbcae5ee4f615af804c3bffc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: application.ex \u2194 server.ex: \u0060apps/debug_adapter/lib/debug_adapter/application.ex\u0060 and \u0060apps/debug_adapter/lib/debug_adapter/server.ex\u0060 change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/debug_adapter/lib/debug_adapter/application.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b690251532127458549dcf1740953d9041f336e5a50fb60188bfef38ef98f944"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: helpers.ex \u2194 server.ex: \u0060apps/language_server/lib/language_server/providers/code_action/helpers.ex\u0060 and \u0060apps/language_server/lib/language_server/server.ex\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) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/language_server/lib/language_server/providers/code_action/helpers.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df92b5e21c6f385068ec39cbc665ec2592ae608966d8b0ed51392b4677801f69"}},{"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"}},{"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"}},{"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"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":37,"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."]}]}