# optimum_credo v0.4.0

We've moved to almost fully autonomous AI-driven development and rely less on human code review. We're pushing more into Credo — mechanical rules that catch low-quality patterns deterministically, without asking an LLM to judge.

Version 0.4.0 adds four new checks targeting the patterns that slip through most often in AI-generated code.

```markdown
## 0.4.0 (2026-04-29)

- Added `SkippedTest` warning check to detect `@tag :skip`, `@tag skip: true`, and `@moduletag :skip` annotations that hide failing tests. Supports an `allow_with_comment` param to exempt tags annotated with an inline explanation.
- Added `EmptySetupBlock` readability check to detect `setup do :ok end`, `setup do end`, and `setup do {:ok, %{}} end` blocks in test files that provide no value and should be removed.
- Added `RuntimeEnvDevDefault` warning check to detect `System.get_env/2` calls in `config/runtime.exs` that use a developer-machine path (`/Users/`, `/home/`, `~/`) as the default value.
- Added `CaseTrueFalse` refactor check to detect `case` expressions with exactly two clauses matching literal `true` and `false`, suggesting replacement with an `if` expression.
```

https://hex.pm/packages/optimum_credo


---

Created by: almirsarajcic
Date: April 29, 2026
URL: https://elixirdrops.net/d/pVw8Kzby
