Page History
The BMA allows to configure its rules according to modelling conventions that have been made at your project. To do so, follow these steps:
...
- Changing the parameters of rules requires logging in. The default SonarQube credentials are "admin", "admin".
- After choosing the tab "Quality Profiles", the built in Blueriq Rules Profile should appear in the list.
- From SonarQube version 6.7, it is no longer possible to manually change built in profiles. Therefore we suggest you make your own copy of the Blueriq rules
...
Blueriq language
All Blueriq specific rules can be viewed in an overview through the Rules tab, optionally by filtering on Language Blueriq at the right of the screen:
- profile and make this the default one.
- By clicking on one of the active rules, for instance the parameterized "Decision table gap/overlap analysis" rule, a detailed overview of the specific rule is presented.
- When clicking on the change button, the parameters are presented and editable.
- After changing the parameters, you have to run a new analysis in order to see the effect of the changes.
Parameters in rules
Some of the Blueriq specific rules take in parameters during analysis. These parameterized rules use default values, but if needed these default values can be overridden through Sonarqube's web interface. The parameterized rules are:
...
Rule | Explanation |
---|---|
Elements in flow | By default the elements in flow rule has maximum elements value of twenty. By settings this property the maximum value can be increased or decreased. |
Flow viewport | By default the flow view-port rule checks if the flow does not exceeds the boundaries of the default view-port which is x=1700,y800. By settings these properties the view-port can be made smaller of bigger. |
Expression Simplifier | By default the expression simplifier rule uses boolean logic to check if expressions can be simplified. By setting this property to false the rule will use three valued logic instead. |
Metadata in aggregate | By default the number of metadata fields in an aggregate is set to 10. By setting this property the number of fields can be increased or decreased. Increasing this number is discouraged as it can affect the performance of the application |
Changing parameters
. |
...
By clicking on one of the active rules, for instance the parameterized "Elements in flow" rule, a detailed overview of the specific rule is presented:
When clicking on the change button on the right, the parameters are presented and editable:
...