Skip to content

Initial version

Compare
Choose a tag to compare
@racodond racodond released this 27 Nov 20:49
· 92 commits to master since this release

This plugin enables scanning of Cucumber Gherkin feature files. It comes with 19 rules and the ability to write your own custom rules.

  • Rules provided out of the box:
  • "Examples" table should contain data
  • "FIXME" tags should be handled
  • "TODO" tags should be handled
  • All comments should be formatted consistently
  • Byte Order Mark (BOM) should not be used for UTF-8 files
  • End-line characters should be consistent
  • Features should not contain too many scenarios
  • Features that do not define any scenario should be removed
  • File names should comply with a naming convention
  • Files should contain an empty new line at the end
  • Files that do not define any feature should be removed
  • Lines should not end with trailing whitespaces
  • Only tags from the whitelist should be used
  • Scenarios should not contain too many steps
  • Source code should be properly indented
  • Star (*) step prefix should not be used
  • Tabulation characters should not be used
  • Tags should comply with a naming convention
  • Regular expression on comment

Plugin example to write your own custom rules: https://github.com/racodond/sonar-gherkin-custom-rules-plugin

Compatibility: SonarQube 5.6+