From bbb291ba2f468f50d057961187c94a9203a6f689 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 22 Apr 2020 08:40:12 +0800 Subject: [PATCH] MDL-66109 behat: Prevent the use of Examples in Scenarios This change enables the Gherkin-lint rule to prevent the use of "Examples" in a Scenario. The Example tag is only allowed in a Scenario Outline at this time and their use in a Scenario has no meaning. --- .gherkin-lintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.gherkin-lintrc b/.gherkin-lintrc index a835723024655..50de7561efbd2 100644 --- a/.gherkin-lintrc +++ b/.gherkin-lintrc @@ -19,5 +19,6 @@ "no-unnamed-features": "on", "no-unnamed-scenarios": "on", "no-scenario-outlines-without-examples": "on", + "no-examples-in-scenarios": "on", "new-line-at-eof": ["on", "yes"] }