You are reading the documentation for gurkencheck 0.0.6. Go to version 0.0.10.

gurkencheck A linter for Gherkin feature files.

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