Summary: A page describing how to manage your Quality Rules (change parameters, excluding Applications/Modules from specific Quality Rules, activating/deactivating Quality Rules). Metric and Quality Rule management is undertaken in the CAST Management Studio, via the Assessment Models editor.

WARNING: If you update the Assessment Model for whatever reason (during a CAST AIP version upgrade, reinstallation etc.) any customizations you may have made will be lost. To avoid this, make sure you export the Assessment Model from the CAST Management Studio using the Export Configuration option available via the File > Export File menu option.

Changing Quality Rule parameters for your organization

Although CAST presents a large range of quantity and quality metrics that provide very satisfactory results, you can modify some of the parameters in the individual Quality Rule or Metrics to meet your current development environment or architecture requirements.

To do so you need to use the CAST Management Studio as follows:

Note that if you do decide to use this Assessment Model, you must ensure that your CAST Dashboard Service is configured to use it.

Parameters

Parameter values are default values assigned by CAST for a Quality Rule (but not all Quality Rules have values). A Parameter value enables the creation of Quality Rules that require a number of items to be counted - for example, the ABAP "Avoid Function pools with more than 20 functions" Quality Rule has a parameter value of 20.

In some cases, the default Parameter value defined by CAST for a specific Quality Rule may not be appropriate for your local rules and standards. If this is the case, it is possible to change the Parameter value for those Quality Rules that have values (some do not). Take for example the ABAP "Avoid Function pools with more than 20 functions" Quality Rule. This Quality Rule checks for ABAP Function Pools with more than 20 functions, however, your organization may have stricter standards, in which case you need to change the number of methods per class that cause a positive result to be recorded.

To do so:

Note that generating a snapshot includes the step of "synchronizing you Assessment Model with the Dashboard Service schema". However, if you would like to complete this step manually you can do so as follows:

  • Click Synchronize Assessment Model in the Assessment Model tab in the Dashboard Service editor.

Excluding items from Snapshot Generation

It is possible to exclude an Application or Module from a snapshot generation based on a Business Criterion, Technical Criterion or Quality Rule. In other words you can choose to specifically exclude an Application or Module from a specific Business Criterion, Technical Criterion or Quality Rule in the next snapshot.

Exclusions are set at CAST Dashboard Service Level - i.e. Applications or Modules and Business Criterion, Technical Criterion or Quality Rules managed by the current Dashboard Service.

Note that generating a snapshot includes the step of "synchronizing you Assessment Model with the Dashboard Service schema". However, if you would like to complete this step manually you can do so as follows:

  • Click Synchronize Assessment Model in the Assessment Model tab in the Dashboard Service editor.

Activating/Deactivating a Metric/Quality Rule

It is possible to activate or deactivate a Metric/Quality Rule if required. Deactivation would mean that the Metric/Quality Rule is no longer included in the Snapshot generation process for any application or module.

If an item is deactivated, it and any sub items (Quality Rules etc.) belonging to it will no longer be taken into account during the snapshot generation process. This is designed to be a temporary action, i.e. it can be changed easily and quickly between snapshots.

To deactivate a specific metric you need to use the CAST Management Studio:

Note that generating a snapshot includes the step of "synchronizing you Assessment Model with the Dashboard Service schema". However, if you would like to complete this step manually you can do so as follows:

  • Click Synchronize Assessment Model in the Assessment Model tab in the Dashboard Service editor.