How to write a custom rule for other languages not supported in sonarqube?

We are planning to write custom rules for cucumber gherkin and json files. Could anyone help me the process for creating a new rules?


Your two choices are to

  • Write a SonarQube plugin to support the language (including basic metrics) and implement your rules
  • Implement your checker as a standalone piece that you would run before SonarQube analysis. It should output either a Generic Issue report or a SARIF report