Is there any way to create custom rules from sonarqube UI

Is there any way to create custom rules from sonarqube UI instead of deploying as jar in extension path. We have successfully deployed custom plugin for JAVA in sonarqube and analyzed it. But, we have many custom rules need to be created for a specific project which we expect to be created with ease way. At present, we are trying with community edition. Please let us know if custom creation can be done easily with another other edition like developer/ enterprise / data center edition?

Hi!

Welcome to Sonar Community!

It will depend on the complexity of the rule. You can use rule templates to create rules from the UI or depending on the language, you can even create XPath rules from the UI.

Check the rules and use the filter to show templates only. For instance, here you can see rule templates for Java:

If the rule you want to create is more complex you will need to create a plugin.

Check out custom rule documentation for more information:

Best regards.

1 Like