Skip to content

indentation ​

Require configured indentation for Feature, Background, Rule, Scenario, step, Examples, and tag lines; content inside a Rule is checked when rule content sets its extra indentation.

CategoryRecommendedSafe autofixDefault options
formattingnoyesnone

Reports and safely fixes indentation. Defaults: Feature, Background, Rule, Scenario, Examples 0, Step and example 2; given, when, then, and, but, feature tag, and scenario tag override per line type. Content inside a Rule is checked only when rule content sets its extra indentation.

Configuration ​

json
{ "rules": { "indentation": "error" } }

Triggered by ​

text
   Scenario: shifted

Released under the MIT License.