Basics
This check is disabled by default.
Learn how to enable it via .credo.exs.
This check has a base priority of high and works with any version of Elixir.
Explanation
Direct wall-clock reads bypass the clock test override and make code paths un-time-travellable. Route through your clock wrapper instead.
Check-Specific Parameters
Use the following parameters to configure this check:
:replacement
Your clock wrapper module name, shown in the message.
This parameter defaults to "Ambient.Clock".
:exempt_suffixes
File path suffixes exempt from the check (your wrapper's own file).
This parameter defaults to ["lib/ambient/clock.ex"].
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.