jscpd
Version:
Copy/paste detector for programming code, support JavaScript, CoffeeScript, PHP, Ruby, Python, Less, Go, Java, Yaml, C#, C++, C, Puppet, Twig languages
24 lines (23 loc) • 505 B
TypeScript
export interface IStatisticRow {
lines: number;
sources: number;
duplicatedLines: number;
clones: number;
percentage: number;
newDuplicatedLines: number;
newClones: number;
}
export interface IStatisticFormat {
sources: {
[source: string]: IStatisticRow;
};
total: IStatisticRow;
}
export interface IStatistic {
total: IStatisticRow;
detectionDate: string;
formats: {
[format: string]: IStatisticFormat;
};
threshold?: number;
}