no-duplicate-tags
Stops the same tag being written twice in one place.
What it does#
Repeating a tag has no effect and is nearly always a copy-and-paste slip.
Turning it on#
Add this to your .gurkencheckrc:
{
"no-duplicate-tags": "on"
}
Settings#
This rule has no settings. Switch it on with "no-duplicate-tags": "on".
Examples#
Passes
@smoke @slow
Feature: Logging in
Scenario: A known user logs in
Given I am a known user
Fails
@smoke @slow @smoke
Feature: Logging in
Scenario: A known user logs in
Given I am a known user
gurkencheck reports: Duplicate tags are not allowed: @smoke