Versions Compared

Key

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

...

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

Parameter


maxSpecializations

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

Example

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

This results in the following code smell:

...

Image Added