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.
Release 0.2 (2 issues)
|SONARPLUGINS-1298||Reduce the number of dependencies.||Resolved||Fixed|
|SONARPLUGINS-1958||Add precision of the line number||Resolved||Fixed|
Release 0.1 (5 issues)
|SONARPLUGINS-1290||Integrate drools verifier||Resolved||Fixed|
|SONARPLUGINS-1087||Add drl keywords for coloring sources||Resolved||Fixed|
|SONARPLUGINS-1084||Create project infrastructure||Resolved||Fixed|
|SONARPLUGINS-1124||Add standard file metrics for drl files||Resolved||Fixed|
|SONARPLUGINS-1096||Add Drools third-party libraries.||Resolved||Fixed|