Credo.Check.Refactor.ModuleDependencies (Credo v1.6.1) View Source

This check has a base priority of normal and works with any version of Elixir.

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

Use the following parameters to configure this check:

:max_deps

Maximum number of module dependencies.

This parameter defaults to 10.

:dependency_namespaces

List of dependency namespaces to include in this check

This parameter defaults to [].

:excluded_namespaces

List of namespaces to exclude from this check

This parameter defaults to [].

:excluded_paths

List of paths or regex to exclude from this check

This parameter defaults to [~r/\/test\//, ~r/^test\//].

General Parameters

Like with all checks, general params can be applied.

Parameters can be configured via the .credo.exs config file.