Skip to main content

actualize

Callable

  • actualize(lloc?: number, cyclomatic?: number, operators?: any, operands?: any, ignoreKeys?: any, newScope?: any, dependencies?: any): { cyclomatic: Trait; dependencies: Trait; ignoreKeys: Trait; lloc: Trait; newScope: Trait; operands: HalsteadArray; operators: HalsteadArray }

  • Provides a helper method to format core traits for escomplex processing.


    Parameters

    • lloc: number = 0

      Logical lines of code

    • cyclomatic: number = 0

      The number of linearly independent paths through source code.

    • operators: any = ...

      An operator carries out an action.

    • operands: any = ...

      An operand participates in such an action (operator).

    • ignoreKeys: any = ...

      Provides a list of AST node children keys to skip traversal.

    • newScope: any = ...

      Creates a new class or method scope for report generation.

    • dependencies: any = ...

      An import / require dependency.

    Returns { cyclomatic: Trait; dependencies: Trait; ignoreKeys: Trait; lloc: Trait; newScope: Trait; operands: HalsteadArray; operators: HalsteadArray }