no-trailing-spaces
Removes spaces and tabs left at the end of a line.
What it does
Trailing whitespace is invisible while you type but shows up in every diff. Removing it keeps reviews about the actual change.
Turning it on
Add this to your .gurkencheckrc:
{
"no-trailing-spaces": "on"
}
Settings
This rule has no settings. Switch it on with "no-trailing-spaces": "on".
Examples
Passes
Feature: Logging in
Scenario: A known user logs in
Given I am a known user
Fails
Feature: Logging in
Scenario: A known user logs in
Given I am a known user
gurkencheck reports: Trailing spaces are not allowed