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

gurkencheck A linter for Gherkin feature files.

new-line-at-eof

Requires, or forbids, an empty line at the end of the file.

What it does#

Most tools expect a file to end with a line break. Pick "yes" to require one, or "no" to forbid one, and every file in the project will match.

Turning it on#

Add this to your .gurkencheckrc:

{
  "new-line-at-eof": ["on", "yes"]
}

Settings#

SettingValueIf you leave it outWhat it does
the value "yes" or "no" "yes" Whether the file must end with a line break ("yes") or must not ("no"). This rule takes a single value rather than an object.

Examples#

Passes
Feature: Logging in

  Scenario: A known user logs in
    Given I am a known user
↵ <- the file ends with a line break
Fails
Feature: Logging in

  Scenario: A known user logs in
    Given I am a known user <- the file stops here, with no line break

gurkencheck reports: New line at EOF(end of file) is required