mix dala.verify (dala v0.8.1)

Copy Markdown View Source

Verifies Dala DSL definitions in the current project and reports any issues.

Usage

mix dala.verify              # Run all verifications
mix dala.verify --dsl        # Verify DSL definitions only
mix dala.verify --components # List all available components
mix dala.verify --strict     # Exit with error code on warnings

What it checks

When --dala.verify --dsl is used, the following checks are performed:

  • Unknown component types — component atoms not in the registry
  • Invalid prop names — props not accepted by the component (with typo suggestions)
  • Event handler types — event handler props that are not atoms or {pid, tag} tuples
  • Leaf with children — children placed inside leaf components
  • Invalid attribute types — attribute types not in the valid set
  • Missing handlers — event handlers referenced in UI but no handle_event/3 clause
  • Invalid variants — invalid variant values on text components

Examples

mix dala.verify --dsl
mix dala.verify --dsl --strict
mix dala.verify --components