cognitive-complexity-ts
Version:
This program analyses TypeScript and JavaScript code according to the [Cognitive Complexity metric](https://www.sonarsource.com/docs/CognitiveComplexity.pdf). It produces a JSON summary and a GUI for exploring the complexity of your codebase.
7 lines (6 loc) • 493 B
TypeScript
import * as ts from "typescript";
export declare function chooseContainerName(node: ts.Node, variableBeingDefined: string | undefined): string | undefined;
export declare function getIntroducedLocalName(node: ts.Node): string | undefined;
export declare function getNameIfCalledNode(node: ts.Node): string | undefined;
export declare function getNameOfAssignment(node: ts.Node): string | undefined;
export declare function getExpressionToAccessObjectMember(node: ts.Node): string | undefined;