Skip to content

feature-size ​

Limit the number of Scenarios in a Feature, including Scenarios under Rules, optionally counting each Examples row.

CategoryRecommendedSafe autofixDefault options
structurenono{"maxScenarios":20}

Limits Scenarios in a Feature, including Scenarios under Rules. countOutlineExamples: true counts each Examples row of an outline.

Configuration ​

json
{ "rules": { "feature-size": ["error", {"maxScenarios":20}] } }

Triggered by ​

text
Feature: Large workflow with more than the configured number of scenarios

Released under the MIT License.