This example demonstrates how to write Custom Rules for SonarJava.
If you are using SonarQube 9.9 LTS (latest release), use the following command to build it without any dependency to the current project status:
mvn clean install -f pom_SQ_9_9_LTS.xml
For more details about how to write custom rules, please refer to the official tutorial, Writing Custom Java Rules 101.
The SSALv1 license of this GitHub repository does not apply in the java-custom-rules-example directory.
All contents under the java-custom-rules-example directory are licensed under the more permissive MIT No Attribution license.