git-kloc-analyzer
Version:
A powerful TypeScript tool for analyzing KLOC (Kilo Lines of Code) statistics from Git repositories with email-based contributor grouping
39 lines • 1.12 kB
TypeScript
/**
* Statistics for a single contributor
*/
interface ContributorStats {
author: string;
email: string;
linesAdded: number;
linesDeleted: number;
netLines: number;
commits: number;
kloc: number;
}
/**
* Analyzer for calculating KLOC (Kilo Lines of Code) statistics from Git repositories
*/
declare class GitKlocAnalyzer {
private repoPath;
private fromDate;
private toDate;
/**
* Creates a new GitKlocAnalyzer instance
* @param repoPath - Path to the Git repository
* @param fromDate - Start date in YYYY-MM-DD format
* @param toDate - End date in YYYY-MM-DD format
*/
constructor(repoPath: string, fromDate: string, toDate: string);
private executeGitCommand;
private validateRepository;
private validateDateFormat;
private validateDateRange;
private getCommitsInRange;
private getAllCommitStatsOptimized;
private getCommitStats;
private aggregateStatsByAuthor;
analyze(): Promise<ContributorStats[]>;
}
export { GitKlocAnalyzer, ContributorStats };
//# sourceMappingURL=kloc.d.ts.map