Credo.Check.Refactor.ModuleDependencies (Credo v1.5.0) 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.

Configuration parameters

Use the following parameters to configure this check:

  • max_deps: Maximum number of module dependencies.

    Defaults to 10

  • dependency_namespaces: List of dependency namespaces to include in this check

    Defaults to []

  • excluded_namespaces: List of namespaces to exclude from this check

    Defaults to []

  • excluded_paths: List of paths or regex to exclude from this check

    Defaults to [~r/\/test\//, ~r/^test\//]

Like with all checks, general params can be applied.

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