View Source Credo.Check.Warning.ApplicationConfigInModuleAttribute (Credo v1.7.5)
This check is enabled by default.
Learn how to disable it via
This check is tagged
This means that this check is more opinionated than others and not for everyone's taste.
This check has a base priority of
high and works with any version of Elixir.
Module attributes are evaluated at compile time and not at run time. As a result, certain configuration read calls made in your module attributes may work as expected during local development, but may break once in a deployed context.
This check analyzes all of the module attributes present within a module, and validates that there are no unsafe calls.
These unsafe calls include:
There are no specific parameters for this check.
Like with all checks, general params can be applied.
Parameters can be configured via the
.credo.exs config file.