doctor

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Severity Severity
	Message  string
	File     string
}

Diagnostic represents a single finding from the doctor scanner.

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

Scanner scans a Nexus project for issues.

func NewScanner

func NewScanner(projectDir string) *Scanner

NewScanner creates a new doctor scanner for the given directory.

func (*Scanner) Run

func (s *Scanner) Run() ([]Diagnostic, error)

Run executes all diagnostic rules and returns the findings.

type Severity

type Severity int

Severity represents the severity level of a diagnostic finding.

const (
	// Info indicates a suggestion or best practice.
	Info Severity = iota
	// Warning indicates a non-blocking issue.
	Warning
	// Error indicates a broken or missing component.
	Error
)

Jump to

Keyboard shortcuts

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