Documentation
¶
Index ¶
- func CheckFileThresholds(path string, f *score.FileScore, cfg config.Config) []string
- func CheckThresholds(result *score.RepoScore, cfg config.Config) []string
- func FilterByMinGrade(files []score.FileScore, minGrade string) []score.FileScore
- func HasIssues(result *score.RepoScore) bool
- func PrintDiffPretty(result *score.DiffResult, version string)
- func PrintPretty(result *score.RepoScore, version string, quiet bool)
- func SortFiles(files []score.FileScore, sortBy string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileThresholds ¶
CheckFileThresholds checks a single file against thresholds.
func CheckThresholds ¶
CheckThresholds checks all files against thresholds.
func FilterByMinGrade ¶
FilterByMinGrade returns only files at the given size grade or worse.
func PrintDiffPretty ¶
func PrintDiffPretty(result *score.DiffResult, version string)
PrintDiffPretty prints a human-readable diff report.
func PrintPretty ¶
PrintPretty prints a human-readable table of repo scores.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.