doctor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 14 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

Overview

Package doctor diagnoses a repo's stacklit setup: config, hooks, index freshness, skipped files and parse failures. It never modifies the repo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Level   Level    `json:"level"`
	Check   string   `json:"check"`
	Message string   `json:"message"`
	Fix     string   `json:"fix,omitempty"`
	Details []string `json:"details,omitempty"`
}

Finding is one diagnosed fact with an optional suggested fix.

type Level

type Level string

Level is the severity of a finding.

const (
	OK    Level = "ok"
	Info  Level = "info"
	Warn  Level = "warn"
	Error Level = "error"
)

type Report

type Report struct {
	Root     string    `json:"root"`
	Findings []Finding `json:"findings"`
}

Report is the full result of Run.

func Run

func Run(root string) (*Report, error)

Run inspects root and returns a report.

func (*Report) Count

func (r *Report) Count(l Level) int

Count returns how many findings have the given level.

Jump to

Keyboard shortcuts

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