Version
CA010 - High complexity of nested branches and loops
Description
When the number of nested branches or loops increases, the source code is less readable. This warning is controlled by a complexity threshold preference.
Scope feature Status Enabled Severity Suggestion Applicability All Score 60 Complexity threshold 5
Example of violation
Recommendation
Encapsulate some of the inner branches or loops into a reusable routine.
In the example, it can simply be:
Back to Rules