diagnostic

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeAmbiguousLink                   = "1"
	CodeBrokenLink                      = "2"
	CodeNonBreakingWhitespace           = "3"
	CodeMissingYamlFrontMatter          = "4"
	CodeMissingShortDescription         = "5"
	CodeInvalidHeadingHierarchy         = "6"
	CodeUnrecognizedSchema              = "7"
	CodeTaskMissingProcedure            = "8"
	CodeConceptHasProcedure             = "9"
	CodeReferenceMissingTable           = "10"
	CodeMapHasBodyContent               = "11"
	CodeExtendedFeatureInCoreProfile    = "12"
	CodeFootnoteRefWithoutDef           = "13"
	CodeFootnoteDefWithoutRef           = "14"
	CodeUnknownAdmonitionType           = "15"
	CodeUnresolvedKeyref                = "16"
	CodeBrokenMapReference              = "17"
	CodeCircularMapReference            = "18"
	CodeInconsistentMapHeadingHierarchy = "19"
	CodeUnknownOutputclass              = "20"
	CodeDomainClassWrongParent          = "21"
	CodeExtendedProfileRequired         = "22"
	CodeUnknownConditionalAttribute     = "23"
	CodeTaskSectionOutOfOrder           = "24"
	CodeDuplicateTaskSection            = "25"
	CodeRelLinksNonLinkContent          = "26"
	CodeMenucascadeMissingSeparator     = "27"
	CodeStepElementOutsideStep          = "28"
	CodeReltableInconsistentColumns     = "29"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Range    document.Range
	Severity Severity
	Code     string
	Source   string
	Message  string
}

func Check

func Check(doc *document.Document, folder *workspace.Folder) []Diagnostic

func CheckDitamap

func CheckDitamap(doc *document.Document, folder *workspace.Folder) []Diagnostic

func CheckKeyrefs

func CheckKeyrefs(doc *document.Document, folder *workspace.Folder) []Diagnostic

type Severity

type Severity int
const (
	SeverityError   Severity = 1
	SeverityWarning Severity = 2
	SeverityInfo    Severity = 3
)

Jump to

Keyboard shortcuts

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