주요 콘텐츠

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 결과

모두 확장

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

도움말 항목