mix ussd.lint (Ussd v0.2.0)

Copy Markdown View Source
mix ussd.lint
mix ussd.lint MyApp.Ussd.States.Welcome
mix ussd.lint --strict

With no arguments, discovers every compiled module under config :ussd, :namespace that flags itself initial: true (see use Ussd.State) and walks from there. Pass one or more state modules explicitly to lint a specific flow (or one whose entry points aren't flagged initial).

--strict makes warnings (not just errors) fail the command.