mix verify (Xqlite v0.10.0)

View Source

Runs all checks that CI will enforce, in fast-to-slow order.

Stops on the first failure. Designed to be run before every commit to avoid pushing code that will fail CI.

Steps

  1. Elixir formatting (mix format --check-formatted)
  2. Rust formatting (cargo fmt --check)
  3. Elixir compilation with warnings as errors
  4. Dependency vulnerability audit (mix deps.audit)
  5. Sobelow static security analysis (mix sobelow)
  6. Rust clippy with denied warnings
  7. Rust unit tests (cargo test)
  8. Dialyzer type checks
  9. Full Elixir test suite (mix test.seq)

Usage

mix verify

Summary

Functions

check_deps_audit()

check_dialyzer()

check_elixir_compile()

check_elixir_format()

check_rust_clippy()

check_rust_format()

check_rust_tests()

check_sobelow()

check_tests()

run(args)

Callback implementation for Mix.Task.run/1.