mix ragex. ci
(Ragex v0.32.2)
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--no-db- Exclude DB-related checks and reports--no-user- Exclude user-input-related checks and reports
Examples
# Run in a GitHub Actions PR workflow
mix ragex.ci --base origin/$GITHUB_BASE_REF
# With GitHub Actions inline annotations and suppressed DB/User reports
mix ragex.ci --format github --no-db --no-user