no-unused-variables
Every column of an Examples table should be used by a step.
What it does
A column nothing reads is dead weight, and usually the leftover of a rename that was only half finished. Switch on no-undeclared-variables as well to catch the other half: a <placeholder> with no column behind it.
Turning it on
Add this to your .gurkencheckrc:
{
"no-unused-variables": "on"
}
Settings
This rule has no settings. Switch it on with "no-unused-variables": "on".
Examples
Passes
Feature: Logging in
Scenario Outline: Logging in as <role>
Given I am a <role>
Then I see <landing>
Examples:
| role | landing |
| admin | dashboard |
Fails
Feature: Logging in
Scenario Outline: Logging in as <role>
Given I am a <role>
Examples:
| role | landing |
| admin | dashboard |
gurkencheck reports: Examples table variable "landing" is not used in any step