Explanation
This rule counts the number of elements within one flow and reports back an issue when the configured maximum number of elements is exceeded. It is recommended for maintainability issues, to keep the number of elements in flows below this maximum, otherwise the flow is considered to be complex.
We estimate that resolving this issue will on average take 15 minutes.
Possible improvement
Avoid lots of elements in a flow because they make flows complex and cluttered. Think about selecting parts of the flow to become sub-flows, preferably parts of the flow that are used in other flows.
Parameter
maxElements | 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. Default Value: 20 |
Example
This flow contains more elements than needed, and can easily be divided into subflows.
This flow results in the following code smell: