cleanexit

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmitTelemetry

func EmitTelemetry(root string, result RemovalReport)

func WriteReceipt

func WriteReceipt(root string, result RemovalReport) (string, error)

WriteReceipt persists the typed close result as a local, non-secret audit artifact. The file is kept below .git so it cannot become a project change.

Types

type Finding

type Finding struct {
	Class  string
	Target string
	Detail string
	Locked bool
}

type Receipt

type Receipt struct {
	Verdict string   `json:"verdict"`
	Classes []string `json:"classes"`
	Removed []string `json:"removed"`
}

func NewReceipt

func NewReceipt(result RemovalReport) Receipt

func (Receipt) Validate

func (receipt Receipt) Validate() error

type RemovalReport

type RemovalReport struct {
	Verdict  string
	Removed  []string
	Findings []Finding
}

func Remove

func Remove(project string, report Report) RemovalReport

type Report

type Report struct {
	Verdict  string
	Findings []Finding
}

func Detect

func Detect(project string) Report

Jump to

Keyboard shortcuts

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