R325 – This function has an excessive number of returns (WMB)

This function has an excessive number of returns (WMB)

The more returns from a function or procedure then the more complex a routine and the more difficult that a routine would be to test.

This can be configured as a property.

sonar.mb.esql.returns 5

The default value is 3.