Skip to content

Commit

Permalink
Merge pull request #189 from Lewiscowles1986/feature/gherkin-linting
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera authored May 10, 2021
2 parents e2fef80 + 3f92b36 commit 92234cb
Show file tree
Hide file tree
Showing 4 changed files with 360 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gherkin-lintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"indentation": [
"on",
{
"Feature": 0,
"Background": 2,
"Scenario": 2,
"Step": 4,
"given": 4,
"and": 4
}
],
"no-dupe-feature-names": "on",
"no-dupe-scenario-names": "off",
"no-empty-file": "on",
"no-files-without-scenarios": "on",
"no-multiple-empty-lines": "on",
"no-partially-commented-tag-lines": "on",
"no-trailing-spaces": "on",
"no-unnamed-features": "on",
"no-unnamed-scenarios": "on",
"no-scenario-outlines-without-examples": "on"
}
13 changes: 13 additions & 0 deletions .github/workflows/lint-gherkin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Gherkin Linting

on: pull_request

jobs:

gherkin-lint:
name: Lint Gherkin Feature files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: bahmutov/npm-install@v1
- run: npm run lint
301 changes: 301 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "scaffold-package-command",
"version": "1.0.0",
"description": "wp-cli/scaffold-package-command",
"main": " ",
"scripts": {
"test": "echo \"Error: testing not setup\" && exit 1",
"lint": "node ./node_modules/gherkin-lint/dist/main.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/wp-cli/scaffold-package-command.git"
},
"author": "Daniel Bachhuber <daniel@runcommand.io>",
"license": "MIT",
"bugs": {
"url": "https://github.com/wp-cli/scaffold-package-command/issues"
},
"homepage": "https://github.com/wp-cli/scaffold-package-command#readme",
"devDependencies": {
"gherkin-lint": "^4.1.3"
}
}

0 comments on commit 92234cb

Please sign in to comment.