HIS Code Complexity Metrics

The following list shows the Hersteller Initiative Software (HIS) standard metrics that Polyspace® evaluates. These metrics and the recommended limits for their values are part of a standard defined by a major group of Original Equipment Manufacturers or OEMs. For more information on how to focus your review to this subset of code metrics, see Compute Code Complexity Metrics.

Project

Polyspace evaluates the following HIS metrics at the project level.

MetricRecommended Upper Limit
Number of direct recursions0
Number of recursions0

File

Polyspace evaluates the HIS metric, comment density, at the file level. The recommended lower limit is 20.

Function

Polyspace evaluates the following HIS metrics at the function level.

MetricRecommended Upper Limit
Cyclomatic complexity10
Language scope4
Number of call levels4
Number of calling functions5
Number of called functions7
Number of function parameters5
Number of goto statements0
Number of instructions50
Number of paths80
Number of return statements1

Related Topics