Skip to content

Commit c5f06cd

Browse files
committed
Add Gherkin page to docs
1 parent 5897eb7 commit c5f06cd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/_data/sidebars/pmd_sidebar.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ entries:
382382
- title: HTML
383383
url: /pmd_languages_html.html
384384
output: web, pdf
385+
- title: Gherkin
386+
url: /pmd_languages_gherkin.html
387+
output: web, pdf
385388
- title: Developer Documentation
386389
output: web, pdf
387390
folderitems:

docs/pages/pmd/languages/gherkin.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Gherkin
3+
permalink: pmd_languages_gherkin.html
4+
---
5+
6+
The [Gherkin](https://cucumber.io/docs/gherkin/) language is used to define test cases for the [Cucumber](https://cucumber.io/) testing tool for behavior-driven development. The Gherkin syntax is designed to be
7+
non-technical, making it human-readable for a wide audience.
8+
9+
## Support in PMD
10+
Starting from version 6.48.0, Gherkin support was added to CPD.
11+
12+
### Limitations
13+
- Support for Gherkin only extends to CPD to detect code duplication in Cucumber test cases.
14+
- While Gherkin keywords have been translated into various
15+
languages, CPD currently supports only the English version of the Gherkin language.

0 commit comments

Comments
 (0)