scanquality

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ReportVersion = "1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Mode           string
	Scopes         []detect.Scope
	Findings       []model.Finding
	DetectorErrors []detect.DetectorError
}

type ParseIssue

type ParseIssue struct {
	Org               string `json:"org,omitempty"`
	Repo              string `json:"repo,omitempty"`
	Path              string `json:"path"`
	Detector          string `json:"detector,omitempty"`
	Kind              string `json:"kind"`
	Format            string `json:"format,omitempty"`
	Message           string `json:"message,omitempty"`
	Reason            string `json:"reason,omitempty"`
	RecommendedAction string `json:"recommended_action,omitempty"`
}

type Report

type Report struct {
	ScanQualityVersion string                 `json:"scan_quality_version"`
	Mode               string                 `json:"mode"`
	SuppressedPaths    []SuppressedPath       `json:"suppressed_paths,omitempty"`
	ParseErrors        []ParseIssue           `json:"parse_errors,omitempty"`
	DetectorErrors     []detect.DetectorError `json:"detector_errors,omitempty"`
}

func Build

func Build(input Input) Report

type SuppressedPath

type SuppressedPath struct {
	Org    string `json:"org,omitempty"`
	Repo   string `json:"repo,omitempty"`
	Path   string `json:"path"`
	Kind   string `json:"kind"`
	Reason string `json:"reason"`
}

Jump to

Keyboard shortcuts

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