validate

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package validate runs structural integrity checks over a set of loaded .gometa.json metadata files. The metadata artifact is the product of the scan phase and the input to every emitter — defects caught here surface as codegen panics, compile errors in generated packages, or runtime failures when caught later. `generate validate` runs these checks in CI so that scanner regressions and partial scans fail at the artifact boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasErrors

func HasErrors(findings []Finding) bool

HasErrors reports whether any finding carries SeverityError.

Types

type Finding

type Finding struct {
	Severity  Severity
	Framework string
	Message   string
}

Finding is a single integrity problem detected in the metadata set.

func Frameworks

func Frameworks(frameworks []*macosplatformmetadata.FrameworkMeta) []Finding

Frameworks runs every check over the loaded metadata set and returns the combined findings, sorted for deterministic output.

func (Finding) String

func (f Finding) String() string

type Severity

type Severity string

Severity classifies a finding. Errors fail `generate validate`; warnings are reported but do not affect the exit code.

const (
	SeverityError   Severity = "error"
	SeverityWarning Severity = "warning"
)

Jump to

Keyboard shortcuts

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