# `Mailglass.Credo.StreamPolicyConsistent`
[🔗](https://github.com/szTheory/mailglass/blob/v2.7.0/credo_checks/stream_policy_consistent.ex#L1)

## 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

Mailable tracking requires an explicit `:bulk` or `:operational` stream.

## Check-Specific Parameters

Use the following parameters to configure this check:

### `:mailable_module`

  Module used to identify mailable modules (`use Mailglass.Mailable`).

*This parameter defaults to* `Mailglass.Mailable`.

### `:included_path_prefixes`

  Only files in these path prefixes are linted. Scoped to production mailables; test fixtures deliberately declare tracking on `:transactional` to exercise the runtime auth-stream guard, so linting them would be a false positive.

*This parameter defaults to* `["lib/mailglass/", "mailglass_inbound/lib/"]`.

## 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*
