2.3.0 • Published 4 months ago

gplint v2.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

GPLint (Gherkin/Pickle Linter)

Test codecov npm

Uses Gherkin to parse feature files and runs linting against the default rules, and the optional rules you specified in your .gplintrc file.

Forked from gherkin-lint

Documentation

Access to the documentation site to know how to use GPLint: https://gplint.github.io/

Quickstart

We encourage to check the site for complete documentation, but as quick start you can follow this:

Installation

Install as development dependency:

npm install --save-dev gplint

Create basic configuration

Set some basic rules to validate your gherkin files, to do that, create a file called .gplintrc with the following content:

.gplintrc

{
  "allow-all-caps": [
    "error",
    {
      "Global": false,
      "Description": false,
      "ExampleHeader": true,
      "ExampleBody": true
    }
  ],
  "allow-all-lowercase": [
    "error",
    {
      "Global": false,
      "Description": false,
      "Step": true,
      "ExampleHeader": true,
      "ExampleBody": true
    }
  ],
  "file-name": [
    "warn",
    {
      "style": "camelCase",
      "allowAcronyms": true
    }
  ],
  "keywords-in-logical-order": [
    "error",
    {
      "detectMissingKeywords": true
    }
  ],
  "no-superfluous-tags": "warn",
  "no-unnamed-features": "error",
  "no-unnamed-scenarios": "error",
  "no-unused-variables": "warn"
}

Run it!

Run it, checking the Gherkin files you have on test/features folder.

gplint tests/features
2.2.0-rc.0

6 months ago

2.3.0

4 months ago

2.3.0-beta.0

4 months ago

2.3.0-beta.1

4 months ago

2.2.0

6 months ago

2.1.0

9 months ago

2.0.0-beta.2

12 months ago

2.0.0-beta.6

12 months ago

2.0.0-beta.5

12 months ago

2.0.0-beta.4

12 months ago

2.0.0

11 months ago

2.0.0-beta.3

12 months ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

3 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago