# `Ambient.Credo.NoDirectClock`
[🔗](https://github.com/mariuszzak/ambient/blob/v0.2.0/lib/ambient/credo/no_direct_clock.ex#L4)

## Basics

> #### This check is disabled by default. {: .neutral}
>
> [Learn how to enable it](`e:credo:config_file.html#checks`) 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](`e:credo:check_params.html`) can be applied.

Parameters can be configured via the [`.credo.exs` config file](`e:credo:config_file.html`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
