mix quality (predicator v3.5.0)
View SourceRuns the complete code quality validation pipeline.
This task runs the same checks as the pre-push git hook:
- Code formatting check (and auto-fix if needed)
- Trailing whitespace check (and auto-fix if needed)
- Markdown linting (and auto-fix if needed, if markdownlint-cli2 is available)
- Regression tests (critical tests that should always pass)
- Test coverage check (requires >90% coverage)
- Static code analysis with Credo (strict mode)
- Type checking with Dialyzer
Usage
mix qualityOptions
--skip-dialyzer- Skip the Dialyzer type checking step (faster)--skip-markdown- Skip markdown linting checks
Examples
# Run full quality pipeline
mix quality
# Skip slow Dialyzer step
mix quality --skip-dialyzer
# Skip both Dialyzer and markdown checks
mix quality --skip-dialyzer --skip-markdown
Summary
Functions
Callback implementation for Mix.Task.run/1.
Functions
@spec run([String.t()]) :: :ok
Callback implementation for Mix.Task.run/1.