Versions Compared

Key

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

Explanation

This rule counts the number of specializations of an element and reports back an issue when the configured maximum number of specializations per element is exceeded. It is recommended for maintainability purposes to keep the number of specializations of elements below this maximum, otherwise the model is considered to be too complex.

Possible improvements

Avoid specializations because they make the model more complex. Consider introducing a new element in the module instead of specializing it.

Parameter

...

By default the number of specializations per element maximum is one. By settings the maximum value can be increased or decreased.
Default Value:
1

detects whether a service call or rest service has a URL or host and port parameter defined. Having a URL or host and port defined in the model may result in unexpected behavior. It is only recommended to use the URL
parameter for test purposes. It checks service calls of type: 

  • AQ_RestServiceClient
  • AQ_SoapServiceClient
  • AQ_MailService

Possible improvements

Configure the connection in the application.properties file only. This adds the possibility to make the URL dependent on the environment.
See: https://my.blueriq.com/display/DOC/Connections+Properties

Example

For this SOAP service call, the value of URL is set to the "www.example.com". 

Image Added

This results in the following security hotspot:

Image Added

Example

In this model, the value list "Amount" is defined in the "Basic" module and specialized in the "Middle" and "Top" modules. 

Image Removed

This results in the following code smell:

Image Removed