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.
| Category | Recommended | Safe autofix | Default options |
|---|---|---|---|
| formatting | no | yes | none |
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