Versions in this module Expand all Collapse all v1 v1.1.0 Sep 12, 2025 Changes in this version + const DefaultFallbackFileAge + var DefaultAuthorMappings = []AuthorMapping + type AuthorMapping struct + Canonical string + Patterns []string + type HealthIssue struct + Category string + Description string + Details string + Metric string + Recommendation string + Score int + Severity string + type HealthReport struct + AnalysisTime time.Time + CriticalIssues int + HighIssues int + Issues []HealthIssue + LowIssues int + MediumIssues int + RepositoryPath string + Summary string + TimeWindow string + TotalIssues int v1.0.0 Sep 8, 2025 Changes in this version + var ErrBranchTooLarge = errors.New("branch too large") + var ErrFoundCommit = errors.New("commit found") + var ErrFoundTarget = errors.New("target found") + var ErrIterationComplete = errors.New("iteration complete") + var ErrReachedMergeBase = errors.New("reached merge base") + func Execute() + type AuthorContribution struct + Author string + Lines int + Percentage float64 + type BranchInfo struct + AgeInDays float64 + CommitCount int + DivergencePoint string + LastCommitAuthor string + LastCommitTime time.Time + Name string + Risk string + Status string + type BusFactorAnalysis struct + DirectoryStats []DirectoryBusFactorStats + HealthyDirs []DirectoryBusFactorStats + OverallRiskDirs []DirectoryBusFactorStats + TimeWindow string + TotalDirectories int + type ChangeLeadTimeStats struct + AverageLeadTimeHours float64 + Commits []CommitLeadTime + DORAPerformanceLevel string + EliteCommits int + FastestCommits []CommitLeadTime + HighCommits int + LowCommits int + MedianLeadTimeHours float64 + MediumCommits int + P95LeadTimeHours float64 + SlowestCommits []CommitLeadTime + TotalCommits int + type CommitCadenceStats struct + AverageCommitsPerPeriod float64 + Dips []TimePeriod + Spikes []TimePeriod + SustainabilityLevel string + TimePeriods []TimePeriod + TotalCommits int + TotalPeriods int + TrendDirection string + TrendStrength float64 + type CommitInfo struct + Author string + Files []string + Hash string + Message string + Time time.Time + type CommitLeadTime struct + Author string + Classification string + CommitTime time.Time + DeployTime time.Time + Hash string + LeadTimeHours float64 + Message string + type CommitSizeStats struct + Additions int + Author string + Date time.Time + Deletions int + FilesChanged int + Hash string + Message string + RiskLevel string + RiskScore int + type ComponentCreationRate struct + ByType map[string]int + SpikeDetected bool + SpikeReason string + TimeWindow string + TotalCreated int + type ComponentCreationStats struct + ComponentType string + Count int + FileSet map[string]bool + Files []string + FirstSeen time.Time + LastSeen time.Time + type ComponentType struct + Description string + Extensions []string + Name string + Patterns []*regexp.Regexp + type DeadZoneAnalysis struct + ActiveFiles int + DeadZoneCount int + DeadZoneFiles []DeadZoneFileStats + DeadZonePercent float64 + TimeWindow string + TotalFiles int + type DeadZoneFileStats struct + AgeInMonths int + LastModified time.Time + Path string + Recommendation string + RiskLevel string + Size int64 + type DirectoryBusFactorStats struct + AuthorLines map[string]int + AuthorPercentages map[string]float64 + BusFactor int + Path string + Recommendation string + RiskLevel string + TopContributors []AuthorContribution + TotalLines int + type DirectoryChurnStats struct + Additions int + ChurnPercent float64 + Deletions int + FileCount int + Path string + Status string + TotalLOC int + type DirectoryEntropyAnalysis struct + AvgEntropy float64 + HighEntropyDirs []DirectoryEntropyStats + LowEntropyDirs []DirectoryEntropyStats + ProjectType ProjectType + TimeWindow string + TotalDirs int + type DirectoryEntropyStats struct + Entropy float64 + EntropyLevel string + FileCount int + FileTypes map[string]int + Path string + Recommendation string + type FileChurnStats struct + Additions int + ChurnPercent float64 + Deletions int + Path string + Status string + TotalLOC int + type FileOwnership struct + CommitsByAuthor map[string]int + FilePath string + Recommendation string + Status string + TopContributor string + TopOwnership float64 + TotalContributors int + type FilePopularity struct + FilePath string + Percentage float64 + TouchCount int + type HighRiskCommit struct + Author string + Date time.Time + FilesChanged int + Hash string + LinesChanged int + Message string + Reason string + Risk string + type HighRiskCommitsStats struct + AverageFiles float64 + AverageLines float64 + CriticalRisk int + HighRisk int + LargestCommit HighRiskCommit + LowRisk int + ModerateRisk int + RiskyCommits []HighRiskCommit + TotalCommits int + type LongLivedBranchesStats struct + AverageBranchAge float64 + Branches []BranchInfo + CriticalBranches int + HealthyBranches int + OldestBranch *BranchInfo + RiskyBranchDetails []BranchInfo + RiskyBranches int + TotalBranches int + TrunkBasedCompliance string + WarningBranches int + type NewContributor struct + CommitsAnalyzed int + Email string + FilesModified []string + FilesTouched int + FirstCommitTime time.Time + Recommendation string + Status string + type OnboardingFootprintStats struct + AnalyzedContributors int + AverageFilesTouched float64 + CommonFiles []FilePopularity + ComplexOnboarding int + Contributors []NewContributor + ModerateOnboarding int + OverwhelmingOnboarding int + SimpleOnboarding int + TimeWindow string + TotalContributors int + type OwnershipClarityStats struct + CautionFiles int + CriticalFiles int + FileOwnership []FileOwnership + FilesAnalyzed int + HealthyFiles int + TotalFiles int + UnknownFiles int + WarningFiles int + type ProjectType struct + Description string + ExpectedDirs map[string][]string + Name string + RootPatterns []string + type TestRatioStats struct + OtherFiles int + OtherLOC int + Recommendation string + SourceFiles int + SourceLOC int + Status string + TestFiles int + TestLOC int + TestRatio float64 + TotalFiles int + TotalLOC int + type TimePeriod struct + CommitCount int + End time.Time + Severity string + Start time.Time