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, cfg ...config.Config)
- func PrintPrettyColor(result *score.RepoScore, version string, quiet, color bool, ...)
- func SortFiles(files []score.FileScore, sortBy string)
- func UseColor(colorFlag string) bool
- func WriteDiffSARIF(w io.Writer, diffResult *score.DiffResult, cfg config.Config, version string) error
- func WriteSARIF(w io.Writer, result *score.RepoScore, cfg config.Config, version string) error
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.
func PrintPrettyColor ¶ added in v0.1.1
func PrintPrettyColor(result *score.RepoScore, version string, quiet, color bool, cfg ...config.Config)
PrintPrettyColor prints a human-readable table with optional ANSI color for threshold violations.
func WriteDiffSARIF ¶ added in v0.1.1
func WriteDiffSARIF(w io.Writer, diffResult *score.DiffResult, cfg config.Config, version string) error
WriteDiffSARIF writes diff results as SARIF, including regressions and threshold violations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.