mix ragex. ci
(Ragex v0.18.0)
View Source
Runs both mix ragex.analyze --diff and mix metacredo --diff in
sequence, exiting with a non-zero code if either finds issues.
Designed as a single command for CI pipelines (GitHub Actions, etc.).
Usage
mix ragex.ci [options]Options
--base REF- Base git ref (default: origin/main)--head REF- Head git ref (default: HEAD)--format FORMAT- Output format: text, github (default: text)--config PATH- Path to.metacredo.exsconfig file for metacredo
Examples
# Run in a GitHub Actions PR workflow
mix ragex.ci --base origin/$GITHUB_BASE_REF
# With GitHub Actions inline annotations
mix ragex.ci --format github