Skip to content

21 new rules

Compare
Choose a tag to compare
@racodond racodond released this 12 Dec 11:45
· 61 commits to master since this release

Release notes: https://github.com/racodond/sonar-gherkin-plugin/milestone/1?closed=1

  • And and But prefixes should be used instead of redundant Given/When/Then prefixes
  • Common Given steps should be added to Background
  • Examples data table should contain data at least two data rows
  • Features should have a name
  • Features should have a unique name
  • Given steps should follow a regular expression
  • Given/When/Then steps should be defined in the right order
  • Missing data table columns should be added
  • Non-Given steps should be moved out of Background
  • Scenarios should define at least one of each Given/When/Then step type
  • Scenarios should have a name
  • Scenarios should have a unique name
  • Step sentences should not be too long
  • Steps of unknown type should not be used
  • Tags should be defined at the right level
  • Tags should not be set on Examples
  • Then steps should follow a regular expression
  • Unused variables should be removed
  • Useless tags should be removed
  • When steps should follow a regular expression
  • Wording should remain at business level