UNPKG

@zubenelakrab/gitstats

Version:

Powerful Git repository analyzer with comprehensive statistics and insights

50 lines 1.41 kB
import type { Commit, AnalysisConfig, Analyzer } from '../types/index.js'; export interface CollaborationStats { collaborationPairs: CollaborationPair[]; sharedFiles: SharedFile[]; handoffs: Handoff[]; clusters: TeamCluster[]; collaborationScore: number; loneWolves: LoneWolf[]; } export interface CollaborationPair { author1: string; author2: string; sharedFiles: number; sharedCommits: number; collaborationStrength: number; } export interface SharedFile { path: string; authors: string[]; authorCount: number; potentialConflicts: number; } export interface Handoff { file: string; fromAuthor: string; toAuthor: string; count: number; } export interface TeamCluster { members: string[]; commonFiles: string[]; commitOverlap: number; } export interface LoneWolf { name: string; email: string; soloFiles: number; totalFiles: number; soloPercentage: number; } export declare class CollaborationAnalyzer implements Analyzer<CollaborationStats> { name: string; description: string; analyze(commits: Commit[], _config: AnalysisConfig): Promise<CollaborationStats>; private detectClusters; private calculateCollaborationScore; private emptyStats; } export declare function createCollaborationAnalyzer(): CollaborationAnalyzer; //# sourceMappingURL=collaboration-analyzer.d.ts.map