The wiki contains information on how to configure which rules are run for a particular language in standalone, and on how to set the severity of those rules.
If you are using Connected Mode then the set of rules that is run is determined by the Quality Profile in your SonarQube/SonarCloud project.