Rules are defined on the sonar server as a set of configurations for pmd, findbugs, checkstyle, etc.
You must reference the configuration in your pom file (see sonar documentation / wiki ).
sonar.profile property
But basically, you will assign a profile for the project in the configuration of the sonar server. (see the "Profiles" section of the Wiki ). Profiles will also allow you to move rule configurations between environments, for example. between development and production.
source share