doctor

package
v1.34.38 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package doctor aggregates safe project health checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certainty

type Certainty string
const (
	Confirmed Certainty = "confirmed"
	Inferred  Certainty = "inferred"
	Heuristic Certainty = "heuristic"
)

type Finding

type Finding struct {
	ID          string       `json:"id"`
	Severity    string       `json:"severity"`
	Certainty   Certainty    `json:"certainty"`
	Source      string       `json:"source"`
	Path        string       `json:"path,omitempty"`
	Message     string       `json:"message"`
	Remediation *Remediation `json:"remediation,omitempty"`
}

type FixClass

type FixClass string
const (
	FixSafe   FixClass = "safe"
	FixReview FixClass = "review-required"
)

type Remediation

type Remediation struct {
	Class   FixClass `json:"class"`
	Command string   `json:"command,omitempty"`
	Message string   `json:"message"`
}

type Report

type Report struct {
	SchemaVersion int       `json:"schemaVersion"`
	Findings      []Finding `json:"findings"`
}

func Inspect

func Inspect(project *projectmodel.Project, filesystem fsx.FS) Report

Jump to

Keyboard shortcuts

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