no-superfluous-tags
Removes a tag repeated from the level above.
What it does#
A tag on a Feature already applies to everything inside it. Writing it again on a scenario changes nothing and makes the file noisier.
Turning it on#
Add this to your .gurkencheckrc:
{
"no-superfluous-tags": "on"
}
Settings#
This rule has no settings. Switch it on with "no-superfluous-tags": "on".
Examples#
Passes
@smoke
Feature: Logging in
Scenario: A known user logs in
Given I am a known user
@slow
Scenario: An unknown user is turned away
Given I am not a known user
Fails
@smoke
Feature: Logging in
@smoke
Scenario: A known user logs in
Given I am a known user
gurkencheck reports: Tag duplication between Scenario and its corresponding Feature: @smoke