AutoMax
ReferenceCLI commands

automax lint

Validate feature files against Gherkin syntax, the tag taxonomy, module rules and step definitions.

automax lint [paths...] [-p <slug>] [--undefined-steps] [--fix-tags] [--strict] [--file <path>]...
FlagMeaning
-p, --project <slug>project slug (default: every project)
--undefined-stepsalso detect undefined steps through bddgen (slower)
--fix-tagsinsert the layer or module tag suggested by a finding
--stricttreat warnings as errors
--file <path>lint only this feature file; repeatable

Rules:

RuleSeverity
Gherkin parse errorerror
not exactly one layer tag (@ui, @api, @hybrid)error
not exactly one suite tag from tags.suiteserror
@user:, @data:, @env:, @har:, @skip: value unknown to the projecterror
@jira: / @github: pattern invaliderror
duplicate scenario titles in a featureerror
undefined steperror, only with --undefined-steps
Scenario Outline without a # title-format: commentwarning
unknown tagwarning
feature outside every declared module directorywarning
scenario lacks a tag its module expectswarning
unused step definitionwarning

automax run lints first unless --no-lint is given. Exit code 3 on errors.

bun run automax lint -p demo-shop
bun run automax lint -p demo-shop --undefined-steps --strict