mix check_code (neo_faker v0.9.0)
View SourceRuns a series of code quality checks, including formatting, testing, static analysis, and linting.
This Mix task executes the following commands sequentially:
mix format
- Ensures code is properly formatted.mix test
- Runs the test suite to verify correctness.mix dialyzer
- Performs static analysis to detect type errors.mix credo
- Checks for code style and best practices.
Usage
mix check_code
Requirements
Contributors MUST run this task before submitting a Pull Request (PR). Ensure that all checks pass to maintain code quality, consistency, and correctness.
Notes
- If any command fails, the process will stop, and the corresponding error must be resolved.
- Running
mix dialyzer
may take longer on the first run due to PLT (Persistent Lookup Table) building.