Basics
This check is disabled by default.
Learn how to enable it via .credo.exs.
This check has a base priority of normal and works with any version of Elixir.
Explanation
Direct runtime reads of your own app's config bypass the
Ambient.Config override layer and can't be set per-process in
async: true tests. Route through your Config module instead.
Check-Specific Parameters
Use the following parameters to configure this check:
:otp_app
The OTP application whose config reads should be routed (required).
This parameter defaults to nil.
:replacement
Your Config module name, shown in the message (e.g. "MyApp.Config").
This parameter defaults to nil.
:exempt_suffixes
File path suffixes exempt from the check.
This parameter defaults to [].
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.