View Source Credo.Check.Warning.MixEnv (Credo v1.7.5)
This check is disabled by default.
Learn how to enable it via
This check has a base priority of
high and works with any version of Elixir.
Mix is a build tool and, as such, it is not expected to be available in production. Therefore, it is recommended to access Mix.env only in configuration files and inside mix.exs, never in your application code (lib).
(from the Elixir docs)
Use the following parameters to configure this check:
List of paths or regex to exclude from this check
This parameter defaults to
Like with all checks, general params can be applied.
Parameters can be configured via the
.credo.exs config file.