Documentation
¶
Overview ¶
Package doctor runs safe project and environment checks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check interface {
Name() string
Run(env Environment) Result
}
Check inspects a project without executing project code.
func DefaultChecks ¶
func DefaultChecks() []Check
DefaultChecks returns the built-in project checks.
type Environment ¶
type Environment struct {
FS fsx.FS
Root string
Manifest *manifest.Manifest
Lock *lockfile.Lock
Paths paths.Resolved
}
Environment is the read-only context inspected by checks.
type IncludePathsExistCheck ¶
type IncludePathsExistCheck struct{}
IncludePathsExistCheck checks each configured include directory.
func (IncludePathsExistCheck) Name ¶
func (IncludePathsExistCheck) Name() string
func (IncludePathsExistCheck) Run ¶
func (c IncludePathsExistCheck) Run(env Environment) Result
type ManifestDriftCheck ¶
type ManifestDriftCheck struct{}
ManifestDriftCheck compares the lockfile with the current manifest.
func (ManifestDriftCheck) Name ¶
func (ManifestDriftCheck) Name() string
func (ManifestDriftCheck) Run ¶
func (c ManifestDriftCheck) Run(env Environment) Result
type ManifestParsesCheck ¶
type ManifestParsesCheck struct{}
ManifestParsesCheck reports whether a manifest was parsed.
func (ManifestParsesCheck) Name ¶
func (ManifestParsesCheck) Name() string
func (ManifestParsesCheck) Run ¶
func (ManifestParsesCheck) Run(env Environment) Result
Click to show internal directories.
Click to hide internal directories.