---
name: credo
description: "Use when adopting Credo to assess this standard: Keep Elixir code readable and consistent"
---

# Apply Credo

Run checks for readability, consistency and design across umbrella apps. Document which warnings must pass and which invite discussion.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Credo.
2. Use Credo in this repository to meet this standard: Keep Elixir code readable and consistent. Run checks for readability, consistency and design across umbrella apps. Document which warnings must pass and which invite discussion. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://hexdocs.pm/credo/) for configuration and prerequisites.

## Worked check

For one reported file and line, run mix credo explain with that location. Inspect the check's explanation and configuration, apply a scoped correction and rerun the same analysis.

[Evidence and example](https://hexdocs.pm/credo/basic_usage.html)

## Tool invocation

```
mix credo --strict
```
