gurkencheck A linter for Gherkin feature files.

no-dupe-file-names

No two feature files may share a name.

What it does#

Two files called the same thing in different folders are easy to mix up in a review or a stack trace. Worse, tools that write one report per feature name it after the file, so one run quietly overwrites the other and you lose a result without being told. Only the name is compared, not the folder.

Turning it on#

Add this to your .gurkencheckrc:

{
  "no-dupe-file-names": "on"
}

Settings#

This rule has no settings. Switch it on with "no-dupe-file-names": "on".

Examples#

Passes
features/accounts/Login.feature
features/admin/AdminLogin.feature
Fails
features/accounts/Login.feature
features/admin/Login.feature

gurkencheck reports: File name is also used in: features/accounts/Login.feature