View Source Credo.Check.Refactor.ModuleDependencies (Credo v1.7.0)
This check has a base priority of normal
and works with any version of Elixir.
explanation
Explanation
This module might be doing too much. Consider limiting the number of module dependencies.
As always: This is just a suggestion. Check the configuration options for tweaking or disabling this check.
check-specific-parameters
Check-Specific Parameters
Use the following parameters to configure this check:
max_deps
:max_deps
Maximum number of module dependencies.
This parameter defaults to 10
.
dependency_namespaces
:dependency_namespaces
List of dependency namespaces to include in this check
This parameter defaults to []
.
excluded_namespaces
:excluded_namespaces
List of namespaces to exclude from this check
This parameter defaults to []
.
excluded_paths
:excluded_paths
List of paths or regex to exclude from this check
This parameter defaults to [~r/\/test\//, ~r/^test\//]
.
general-parameters
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs
config file.