dead_code_analyzer icon indicating copy to clipboard operation
dead_code_analyzer copied to clipboard

Track unused Type Aliases, Module Types and submodules

Open kit-ty-kate opened this issue 6 months ago • 0 comments

type t = string
module type U = sig val f : unit -> unit end
module type S = sig val f : int -> int end
module A : S
module B : S

neither t, U, S, A and B will not show up in the dead code analysis even if none of them are used.

I suspect anything type-related is probably harder to detect, but at the very least submodules should show up.

Moved from https://github.com/LexiFi/dead_code_analyzer/pull/16#issuecomment-2779268186

kit-ty-kate avatar Aug 23 '25 17:08 kit-ty-kate