Main Content

Guidelines

List and description of guideline checkers

These checkers are related to best practices in coding. Polyspace® raises the software complexity defects when a complexity metric of a module exceeds a specific threshold.

Use the options Check Guidelines (-guidelines) to activate these checkers.

Polyspace Results

expand all

Call tree complexity exceeds thresholdThe call tree complexity of a file is greater than the defined threshold (Since R2021a)
Comment density falls below thresholdThe comment density of the module falls below the specified threshold (Since R2021a)
Cyclomatic complexity exceeds thresholdThe cyclomatic complexity of a function is greater than the defined cyclomatic complexity threshold of a function (Since R2021a)
Depth of call nesting exceeds thresholdThe nesting depth of control structures in a function is greater than the defined nesting depth threshold of a function (Since R2021a)
Language scope exceeds thresholdThe language scope of a function is greater than the defined threshold (Since R2021a)
Number of called functions exceeds thresholdThe number of distinct function calls within the body of a function is greater than the defined threshold (Since R2021a)
Number of calling functions exceeds thresholdThe number of distinct callers of a function is greater than the defined threshold (Since R2021a)
Number of goto statements exceeds thresholdThe number of goto statements in a function is greater than the defined threshold (Since R2021a)
Number of lines exceeds thresholdThe number of total lines in a file is greater than the defined threshold (Since R2021a)
Number of lines in function body exceeds thresholdThe number of lines in the body of a function is greater than the defined threshold (Since R2021a)
Number of local non-static variables exceeds thresholdThe number of local nonstatic variables in a function is greater than the defined threshold (Since R2021a)
Number of local static variables exceeds thresholdThe number of local static variables in a function is greater than the defined threshold (Since R2021a)
Number of return statements exceeds thresholdThe number of return statements in a function is greater than the defined threshold (Since R2021a)
Number of static paths exceeds thresholdThe number of static paths in a function is greater than the defined threshold (Since R2021a)
Number of executable lines in function body exceeds thresholdThe number of executable lines in the body of a function is greater than the defined threshold (Since R2021a)
Number of function calls exceeds thresholdThe number of function calls in a function is greater than the defined call occurrence threshold of a function (Since R2021a)
Number of function parameters exceeds thresholdThe number of arguments of a function is greater than the defined threshold (Since R2021a)
Number of statements exceeds thresholdThe number of statements in a function is greater than the defined threshold (Since R2021a)
Number of direct recursions exceeds thresholdNumber of instances of a function calling itself directly is greater than the defined threshold (Since R2024a)
Number of recursions exceeds thresholdNumber of call graph cycles over one or more functions is greater than the defined threshold (Since R2024a)

Topics