Credo v1.4.0 Credo.Check.Warning.MixEnv View Source
This check has a base priority of high
and works with any version of Elixir.
Explanation
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)
Configuration parameters
Use the following parameters to configure this check:
excluded_paths
: List of paths or regex to exclude from this checkDefaults to
[]
Parameters can be configured via the .credo.exs
config file.