mix quality (msg v0.3.8)
Runs 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)
- Examples tests (validates example applications work correctly)
- 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
Summary
Functions
Callback implementation for Mix.Task.run/1.
Functions
@spec run([String.t()]) :: :ok
Callback implementation for Mix.Task.run/1.