README.md

# CredoDomainBoundary

- `CredoDomainBoundary.Checks.UseContextNotSchema`

Credo checks to keep calls to your domain logic layer focused on context module usage and not direct schema access.

## Usage

### 1. Add to your dependencies

```elixir
def deps do
[
  {:credo_domain_boundary, "~> 0.1.0", only: [:dev, :test], runtime: false}
]
end
```

### 2. Configure the check in `.credo.exs`

```elixir
%{
configs: [
  %{
    name: "default",
    checks: [
      {CredoDomainBoundary.Checks.UseContextNotSchema, [contexts: [MyDomainLogicLayer]]}
    ]
  }
]
}
```

### 3. Run Credo

```bash
mix credo
```