Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectLanguage ¶
DetectLanguage detects the primary language of a repository
Types ¶
type ScanMetrics ¶
type ScanMetrics struct {
DirsScanned int
DirsExcluded int
DirsSkipped int // max depth
ReposFound int
RootsTotal int
RootsCompleted int
TotalDirs int
DeepestPath string
DeepestDepth int
LargestDir string
LargestDirSize int // subdirs count
StartTime time.Time
EndTime time.Time
// contains filtered or unexported fields
}
ScanMetrics tracks scanning statistics
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner handles repository scanning
func (*Scanner) GetMetrics ¶
func (s *Scanner) GetMetrics() *ScanMetrics
GetMetrics returns scanning metrics
func (*Scanner) SnapshotMetrics ¶ added in v0.4.0
func (s *Scanner) SnapshotMetrics() ScanMetrics
SnapshotMetrics returns a consistent copy of the current scan metrics.
func (*Scanner) WithDryRun ¶
WithDryRun enables dry-run mode (collect metrics without processing)
func (*Scanner) WithRemoteCheck ¶
WithRemoteCheck enables remote status checking
Click to show internal directories.
Click to hide internal directories.