code-complexity
Version:
Measure the churn/complexity score. Higher values mean hotspots where refactorings should happen.
19 lines (18 loc) • 496 B
TypeScript
import { Path } from "../types";
export interface IStatistic {
path: string;
churn: number;
complexity: number;
score: number;
}
export default class Statistic {
readonly path: Path;
readonly churn: number;
readonly complexity: number;
readonly score: number;
readonly directories: string[];
static build(path: Path, churn: number, complexity: number): Statistic;
private constructor();
private findDirectoriesForFile;
toState(): IStatistic;
}