Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The source code is imported and decorated with its issues.
Image Removed

...

Image Added

Requirements

Plugin

0.1

0.2

Drools

5.2.0

5.4.0

Include Page
Include - Plugin Installation
Include - Plugin Installation

Usage

Run an Analysis with the SonarQube Runner (Recommended Way)

To launch a Sonar analysis of your Drools project, use the SonarQube Runner.

A sample project is available on github that can be browsed or downloaded: /projects/languages/drools/drools-sonar-runner.

Run an Analysis with Other Analyzers

Maven and Ant can also be used to launch analysis on Drools projects.

A Maven project is available on github that can be browsed or downloaded/projects/languages/drools/drools-maven

Drools Verifier Integration

Drools Verifier Name

Impacted element

SonarQube Rule Key

SonarQube Category

SonarQube  Priority

Description

NOT_SPECIFIED

 

DROOLS_NOT_SPECIFIED

 

 

 

RANGE_CHECK

 

DROOLS_RANGE_CHECK

Maintainability

 

Missing ranges, making sure they are all covered

MISSING_EQUALITY

 

DROOLS_MISSING_EQUALITY

Maintainability

Minor

When there are inequalities, but not equality being catered for

REDUNDANCY

 

DROOLS_REDUNDANCY

 

 

Same restriction exists twice

SUBSUMPTION

 

DROOLS_SUBSUMPTION

 

 

When there multiple rules that have the same RHS, and the LHS has some overlapping conditions

MISSING_COMPONENT

 

DROOLS_MISSING_COMPONENT

 

 

 

OPTIMISATION

 

DROOLS_OPTIMISATION

Efficiency

 

 

INCOHERENCE

 

DROOLS_INCOHERENCE

 

Major

Nothing can meet rule A

OVERLAP

 

DROOLS_OVERLAP

Maintainability

Minor

Rules that are two restrictions are overlapping. Pattern1( a > 10 ) and Pattern1( a > 100 )

ALWAYS_FALSE

 

DROOLS_ALWAYS_FALSE

 

Major

Rules that are always false. Pattern( a == b && a != b )

ALWAYS_TRUE

 

DROOLS_ALWAYS_TRUE

 

Major

Rules and Patterns that are always satisfied. Pattern( a > b || a <= b )

EQUIVALANCE

 

DROOLS_EQUIVALANCE

 

 

Rule A is equivalent with rule B

Requirements

Plugin

0.1

0.2

Drools

5.2.0

5.4.0

...

Usage

Run an Analysis with the SonarQube Runner (Recommended Way)

To launch a Sonar analysis of your Drools project, use the SonarQube Runner.

A sample project is available on github that can be browsed or downloaded: /projects/languages/drools/drools-sonar-runner.

Run an Analysis with Other Analyzers

Maven and Ant can also be used to launch analysis on Drools projects.

A Maven project is available on github that can be browsed or downloaded/projects/languages/drools/drools-maven

Known Limitations

  • Only drl files are imported. 
  • The inspection by the verifier is done file by file.

...