Skip to content

Collection of usages discovery modules for mix_unused

License

Notifications You must be signed in to change notification settings

primait/mix_unused_discoveries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MixUnusedDiscoveries

A collection of usages discovery modules to use with mix_unused.

Installation

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"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mix_unused_discoveries.

Usage

Enable the Unreachable analyzer and add MixUnusedDiscovers to its usages discovery modules:

[
  checks: [
    {MixUnused.Analyzers.Unreachable,
      %{
        usages_discovery: [MixUnusedDiscoveries]
      }}
  ]
]