KADABRA API

LARA API

LARA Common Language API

(.js)
laraImport("lcl.metrics.om.CogniComplex");

(.lara)
import lcl.metrics.om.CogniComplex;

CogniComplex

Constructor

CogniComplex

new CogniComplex()

(Extends Metric)
Measures the Cognitive Complexity


Instance Members

calculateForClass

calculateForClass($class)

Parameters

$class: any

calculateForFile

calculateForFile($file)

Parameters

$file: any

calculateForFunction

calculateForFunction($function)

Parameters

$function: any

calculateForJoinPoint

calculateForJoinPoint($jp)

Parameters

$jp: any

calculateForProject

calculateForProject()