# `Mailglass.Credo.NoOtherAppEnvReads`
[🔗](https://github.com/szTheory/mailglass/blob/v2.7.0/credo_checks/no_other_app_env_reads.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

Mailglass library code must not read other applications' env via
`Application.get_env*` / `fetch_env*`.

## Check-Specific Parameters

Use the following parameters to configure this check:

### `:allowed_apps`

  Application atoms allowed as the first argument.

*This parameter defaults to* `[:mailglass]`.

### `:included_path_prefixes`

  Only files in these path prefixes are linted.

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

### `:watched_functions`

  Application env reader functions this check inspects.

*This parameter defaults to* `[:get_env, :fetch_env, :fetch_env!]`.

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