Skip to content

Repeated keywords

Proposed Name: Repeated keywords rule

Describe what this rule should do:

When writing features (especially with syntax highlighting) it can be easy to miss repeated keywords.

  Scenario: Init project with global tool installed
    Given I have the global tool installed
    When when I run the `version` command
    Then version content should be outputted

What category of rule is this? (place an "X" next to just one item)

  • Warns about a potential error (problem)
  • Suggests an alternate way of doing something (suggestion)
  • Enforces style (layout)
  • Other (please specify:)

What message would be displayed?

Detected possible repeated keyword

Provide 2-3 gherkin examples that this would capture:

  Scenario: Run version
    Given given I have the global tool installed
    When I run the `version` command
    Then version content should be outputted

How would this be configured? What options are needed for this rule?

Enable/disable

What other context would be provided with the message? (what do we need to teach someone seeing this message for the first time?)

The line of gherkin

Does this rule need to be able to be disabled on a case-by-cases basis? If so, propose how this might be done.