From 49a5f67cce84aa82e9641869e2e4740938d00cff Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 12 Dec 2023 15:05:25 -0600 Subject: [PATCH] Allow for specifying checks in mix config Support using mix_unused without using all checks. For example, only the unused check. ``` unused: [ checks: [MixUnused.Analyzers.Unused] ] ``` --- lib/mix_unused/config.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mix_unused/config.ex b/lib/mix_unused/config.ex index 1ec3468..28bc941 100644 --- a/lib/mix_unused/config.ex +++ b/lib/mix_unused/config.ex @@ -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])