Skip to content

CXX Custom Template Rules

guwirth edited this page Mar 10, 2021 · 2 revisions

Rule Templates are provided by plugins as a basis for users to define their own custom rules in SonarQube. To find templates, select the Show Templates Only facet from the the "Template" dropdown:

CXX Rule Templates for Custom Rules

The cxx plugin allows to create additional rules for each tool repository via templates. This allows missing rules to be added to a repository as custom rules.

This method also allows to create new rules "on the fly" without a SonarQube Server restart. For this purpose, the SonarQube WEB API and the corresponding commands can be used.

Rule Templates and Custom Rules describes the procedure in detail.

Clone this wiki locally