Skip to content

Commit

Permalink
Allow for specifying checks in mix config
Browse files Browse the repository at this point in the history
Support using mix_unused without using all checks. For example, only the unused check.

```
unused: [
  checks: [MixUnused.Analyzers.Unused]
]
```
  • Loading branch information
justincy authored Dec 12, 2023
1 parent 4116e7f commit 49a5f67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mix_unused/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ defmodule MixUnused.Config do

defp extract_config(%__MODULE__{} = config, mix_config) do
config
|> maybe_set(:checks, mix_config[:checks])
|> maybe_set(:ignore, mix_config[:ignore])
|> maybe_set(:severity, mix_config[:severity])
|> maybe_set(:warnings_as_errors, mix_config[:warnings_as_errors])
Expand Down

0 comments on commit 49a5f67

Please sign in to comment.