gherkin-lint
Advanced tools
Comparing version 4.0.1 to 4.1.0
{ | ||
"name": "gherkin-lint", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "A Gherkin linter/validator written in javascript", | ||
@@ -5,0 +5,0 @@ "author": "Vasiliki Siakka", |
# Gherkin lint | ||
[](https://travis-ci.org/vsiakka/gherkin-lint/) | ||
[](https://travis-ci.com/github/vsiakka/gherkin-lint/branches) | ||
[](https://coveralls.io/github/vsiakka/gherkin-lint?branch=master) | ||
@@ -35,2 +35,3 @@ [](https://david-dm.org/vsiakka/gherkin-lint) | ||
| [`allowed-tags`](#allowed-tags) | Just the listed tags are allowed | | ||
| [`file-name`](#file-name) | Restrict feature file names to a commmon style | | ||
| [`indentation`](#indentation) | Allows the user to specify indentation rules | | ||
@@ -89,2 +90,20 @@ | [`max-scenarios-per-file`](#max-scenarios-per-file)| Allows the user to specify the max number of scenarios per feature file | | ||
### file-name | ||
`file-name` is configured with a style to enforce. The default is `PascalCase`: | ||
```json | ||
{ | ||
"file-name": ["on", {"style": "PascalCase"}] | ||
} | ||
``` | ||
The list of supported styles is: | ||
- `PascalCase` - first letter of each word capitalized (no spaces) e.g. "MyFancyFeature.feature" | ||
- `Title Case` - first letter of each word capitalized (with spaces) e.g. "My Fancy Feature.feature" | ||
- `camelCase` - first letter of each word capitalized, except first e.g. "myFancyFeature.feature" | ||
- `kebab-case` - all lowercase, hyphen-delimited e.g. "my-fancy-feature.feature" | ||
- `snake_case` - all lowercase, underscore-delimited e.g. "my_fancy_feature.feature" | ||
### no-restricted-patterns | ||
@@ -91,0 +110,0 @@ |
67828
47
1631
286