主要内容

本页翻译不是最新的。点击此处可查看最新英文版本。

规范

规范检查项的列表和描述

这些检查项与编码最佳做法相关。当模块的复杂度度量超出了指定的阈值时,Polyspace® 会提出软件复杂度缺陷。

可以使用检查规范 (-guidelines) 选项激活这些检查项。

Polyspace 结果

全部展开

调用树复杂性超出阈值The call tree complexity of a file is greater than the defined threshold (自 R2021a 起)
注释密度落入阈值以下The comment density of the module falls below the specified threshold (自 R2021a 起)
圈复杂度超出阈值The cyclomatic complexity of a function is greater than the defined cyclomatic complexity threshold of a function (自 R2021a 起)
调用嵌套深度超出阈值The nesting depth of control structures in a function is greater than the defined nesting depth threshold of a function (自 R2021a 起)
函数压力复杂度超出阈值The function stress complexity of a function is greater than the defined threshold (自 R2025a 起)
语言范围超出阈值The language scope of a function is greater than the defined threshold (自 R2021a 起)
被调函数数量超出阈值The number of distinct function calls within the body of a function is greater than the defined threshold (自 R2021a 起)
主调函数数量超出阈值The number of distinct callers of a function is greater than the defined threshold (自 R2021a 起)
goto 语句数超出阈值The number of goto statements in a function is greater than the defined threshold (自 R2021a 起)
行数超出阈值The number of total lines in a file is greater than the defined threshold (自 R2021a 起)
函数体中的行数超出阈值The number of lines in the body of a function is greater than the defined threshold (自 R2021a 起)
局部非静态变量数超出阈值The number of local nonstatic variables in a function is greater than the defined threshold (自 R2021a 起)
局部静态变量数超出阈值The number of local static variables in a function is greater than the defined threshold (自 R2021a 起)
return 语句数超出阈值The number of return statements in a function is greater than the defined threshold (自 R2021a 起)
静态路径的数量超出阈值The number of static paths in a function is greater than the defined threshold (自 R2021a 起)
函数体中可执行行的数量超出阈值The number of executable lines in the body of a function is greater than the defined threshold (自 R2021a 起)
函数调用的数量超出阈值The number of function calls in a function is greater than the defined call occurrence threshold of a function (自 R2021a 起)
函数参数的数量超出阈值The number of arguments of a function is greater than the defined threshold (自 R2021a 起)
语句数超出阈值The number of statements in a function is greater than the defined threshold (自 R2021a 起)
直接递归次数超过阈值Number of instances of a function calling itself directly is greater than the defined threshold (自 R2024a 起)
递归次数超过阈值Number of call graph cycles over one or more functions is greater than the defined threshold (自 R2024a 起)

主题