Credo.Check.Warning.MixEnv (Credo v1.5.0) View Source
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:
excluded_paths: List of paths or regex to exclude from this check
Like with all checks, general params can be applied.
Parameters can be configured via the
.credo.exs config file.