report

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const SchemaVersion = "0"

Variables

This section is empty.

Functions

func WriteVerificationReport

func WriteVerificationReport(path string, report VerificationReport) error

WriteVerificationReport writes report JSON to a file with stable formatting.

Types

type RuleResult

type RuleResult struct {
	ID       string `json:"id"`
	Severity string `json:"severity"`
	Message  string `json:"message"`
}

RuleResult is reserved for deterministic verification rules over DesignIR.

type Summary

type Summary struct {
	Source             string   `json:"source"`
	InputFile          string   `json:"input_file"`
	Parts              int      `json:"parts"`
	Rules              int      `json:"rules"`
	HasFailures        bool     `json:"has_failures"`
	Delimiter          string   `json:"delimiter,omitempty"`
	ParseErrorsCount   int      `json:"parse_errors_count"`
	ParseWarningsCount int      `json:"parse_warnings_count"`
	ParseErrors        []string `json:"parse_errors"`
	ParseWarnings      []string `json:"parse_warnings"`
	NextSteps          []string `json:"next_steps,omitempty"`
}

type VerificationReport

type VerificationReport struct {
	ReportVersion string       `json:"report_version"`
	Summary       Summary      `json:"summary"`
	DesignIR      *ir.DesignIR `json:"design_ir"`
	Rules         []RuleResult `json:"rules"`
}

VerificationReport is the output schema for BOM scan results.

func NewVerificationReport

func NewVerificationReport(design *ir.DesignIR) VerificationReport

NewVerificationReport builds the deterministic JSON payload for scan.

Jump to

Keyboard shortcuts

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