mix check.code (neo_faker v0.12.0)

View Source

Runs a series of code quality checks: 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.

Requirements

Contributors MUST run this task before submitting a Pull Request (PR). All checks must pass to maintain code quality, consistency, and correctness.

Usage

mix check.code

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 building.