# `ZebbraCredo.Check.EnumKernel`
[🔗](https://github.com/zebbra/zebbra_credo/blob/v1.0.0/lib/zebbra_credo/check/enum_kernel.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

Enums share one kernel module that wraps `Ash.Type.Enum` (labels,
translations, shared options). Define each enum with
`use <App>.Type.Enum, values: [...]`; only the kernel itself uses
`Ash.Type.Enum`.

## Check-Specific Parameters

Use the following parameters to configure this check:

### `:files`

  Files to check (Credo's `included`/`excluded` globs); defaults to `lib/`.

*This parameter defaults to* `%{included: ["lib/"]}`.

### `:app`

  The app's root module; the kernel is `<app>.Type.Enum` in `<app lib>/type/enum.ex`.

*This parameter defaults to* `nil`.

### `:kernel`

  The kernel's file path when it is not `<app lib>/type/enum.ex`.

*This parameter defaults to* `nil`.

### `:allowed`

  File globs that may `use Ash.Type.Enum` besides the kernel.

*This parameter defaults to* `[]`.

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