Complexity cc4m_logo_inline

TitleKeep functions short and simple.
PriorityStrongly recommended
Severity level4
DescriptionKeep number of lines of code and cyclomatic complexity to an acceptable level, especially for nested functions and methods in a classdef file. Use the values of the table below.
RationaleShort functions are more likely to be readable, reusable and testable.

Function typeMaximum cyclomatic complexityMaximum number of lines of code
Local (Sub)1550
Methods in a classdef1020