Metrics module is an isolated library. This module actually doesn’t depend on any other OCLint modules. It means we can use this module separately in other projects that also measure the metrics of the source code.
Cyclomatic complexity was introduced by Thomas McCabe. It is determined based on the number of decision points in a method.
NPath complexity measures the number of acyclic execution paths in a method. It differs from cyclomatic complexity as it takes into account the nesting of conditional statements and multi-part boolean expressions.
Non Commenting Source Statements¶
Non commenting source statements (NCSS) counts the number of all statements excluding comments, empty statements, empty blocks, closing brackets or semicolons after closing brackets.
Statement depth is the number of nesting levels.