Function
Static Public Summary | ||
public |
actualize(lloc: function | number, cyclomatic: function | number, operators: function | string | Array, operands: function | string | Array, ignoreKeys: function | string | Array, newScope: function | string, dependencies: function | object | Array): {lloc: Trait, cyclomatic: Trait, operators: HalsteadArray, operands: HalsteadArray, ignoreKeys: Trait, newScope: Trait, dependencies: Trait} Provides a helper method to format core traits for escomplex processing. |
Static Public
public actualize(lloc: function | number, cyclomatic: function | number, operators: function | string | Array, operands: function | string | Array, ignoreKeys: function | string | Array, newScope: function | string, dependencies: function | object | Array): {lloc: Trait, cyclomatic: Trait, operators: HalsteadArray, operands: HalsteadArray, ignoreKeys: Trait, newScope: Trait, dependencies: Trait} source
import actualize from 'typhonjs-escomplex-commons/src/module/traits/actualize.js'
Provides a helper method to format core traits for escomplex processing.
Params:
Name | Type | Attribute | Description |
lloc | function | number | Logical lines of code |
|
cyclomatic | function | number | The number of linearly independent paths through source code. |
|
operators | function | string | Array | An operator carries out an action. |
|
operands | function | string | Array | An operand participates in such an action (operator). |
|
ignoreKeys | function | string | Array | Provides a list of AST node children keys to skip traversal. |
|
newScope | function | string | Creates a new |
|
dependencies | function | object | Array | An import / require dependency. |
Return:
{lloc: Trait, cyclomatic: Trait, operators: HalsteadArray, operands: HalsteadArray, ignoreKeys: Trait, newScope: Trait, dependencies: Trait} |