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

gurkencheck A linter for Gherkin feature files.

no-empty-file

Flags feature files with nothing in them.

What it does#

An empty file is either a leftover or a file someone forgot to finish. Either way it is worth knowing about.

Turning it on#

Add this to your .gurkencheckrc:

{
  "no-empty-file": "on"
}

Settings#

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

Examples#

Passes
Feature: Logging in

  Scenario: A known user logs in
    Given I am a known user
Fails
# An empty file, or one holding only spaces and blank lines.

gurkencheck reports: Empty feature files are disallowed