SDODS
ReferenceCLI commands

sdods lint

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

sdods 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
@req: id not in traceability.requirements (when set)error
scenario without @req: while traceability.require is trueerror
traceability.requirements file missing or unreadableerror
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
@matrix:<name> unknown, or no roles.matrix.yamlerror
roles.matrix.yaml invalid, or a matrix role not in tags.roleserror
@matrix: template misplaced, or uses a placeholder the matrix lackserror
matrix feature out of date (matrix/stale)warning
matrix role with no user-pool account for an environmentwarning

Matrix rules are described in sdods matrix.

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

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

Using an AI coding agent? Install SDODS:

Install the SDODS plugin in Claude Code: skills, subagents, commands and the MCP server.

  1. /plugin marketplace add YarlisAISolutions/sdods-skills
  2. /plugin install sdods@sdods
Learn more about using SDODS with AI tools