output

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileThresholds

func CheckFileThresholds(path string, f *score.FileScore, cfg config.Config) []string

CheckFileThresholds checks a single file against thresholds.

func CheckThresholds

func CheckThresholds(result *score.RepoScore, cfg config.Config) []string

CheckThresholds checks all files against thresholds.

func FilterByMinGrade

func FilterByMinGrade(files []score.FileScore, minGrade string) []score.FileScore

FilterByMinGrade returns only files at the given size grade or worse.

func HasIssues

func HasIssues(result *score.RepoScore) bool

HasIssues returns true if the repo score has any findings.

func PrintDiffPretty

func PrintDiffPretty(result *score.DiffResult, version string)

PrintDiffPretty prints a human-readable diff report.

func PrintPretty

func PrintPretty(result *score.RepoScore, version string, quiet bool, cfg ...config.Config)

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 SortFiles

func SortFiles(files []score.FileScore, sortBy string)

SortFiles sorts file scores by the given key.

func UseColor added in v0.1.1

func UseColor(colorFlag string) bool

UseColor determines whether to use ANSI color output.

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.

func WriteSARIF added in v0.1.1

func WriteSARIF(w io.Writer, result *score.RepoScore, cfg config.Config, version string) error

WriteSARIF writes the repo score as a SARIF v2.1.0 JSON document.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL