Description / Features
The source code of rules are imported with their violations.
Drools Verifier integration
Drools Verifier Name
Sonar Rule Key
Missing ranges, making sure they are all covered
When there are inequalities, but not equality being catered for
Same restriction exists twice
When there multiple rules that have the same RHS, and the LHS has some overlapping conditions
Nothing can meet rule A
Rules that are two restrictions are overlapping. Pattern1( a > 10 ) and Pattern1( a > 100 )
Rules that are always false. Pattern( a == b && a != b )
Rules and Patterns that are always satisfied. Pattern( a > b || a <= b )
Rule A is equivalent with rule B
Usage & Installation
- Restart the Sonar server
- Configure the plugin at global level and for each project
If your project is built with Maven, you should add in your pom
and if you aren't in a Java project you need to add to the build section drl language:
If you project does not use Maven as a build engine, you should create a small pom.xml file at the root of your project and add the following content in it:
To kick-off the analysis, run mvn sonar:sonar
- Drools project analyzed with Maven: /projects/languages/drools.
- Only drl files are imported.
- The inspection by the verifier is done file by file.