A collection of usages discovery modules to use with mix_unused.
If available in Hex, the package can be installed
by adding mix_unused_discoveries to your list of dependencies in mix.exs:
def deps do
[
{:mix_unused_discoveries, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mix_unused_discoveries.
Enable the Unreachable analyzer and add MixUnusedDiscovers to its usages discovery modules:
[
checks: [
{MixUnused.Analyzers.Unreachable,
%{
usages_discovery: [MixUnusedDiscoveries]
}}
]
]