lint

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package lint checks knowledge base topics for structural issues such as missing frontmatter, broken wikilinks, and orphaned files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Columns

func Columns() []string

Columns returns the stable column order for lint issue output.

func Lint

func Lint(topicPath string) ([]models.LintIssue, error)

Lint walks one KB topic, validates structural issues, and returns sorted lint issues that can be formatted by the CLI layer.

func LintWithOptions added in v0.0.6

func LintWithOptions(topicPath string, options LintOptions) ([]models.LintIssue, error)

LintWithOptions walks one KB topic, validates structural issues, and applies optional governance policies.

func Rows

func Rows(issues []models.LintIssue) []map[string]any

Rows converts lint issues into formatter-friendly row data.

func SaveReport

func SaveReport(topicPath string, issues []models.LintIssue, now time.Time) (string, error)

SaveReport writes a markdown lint report to outputs/reports/<date>-lint.md and returns the written absolute path.

Types

type JavaDiagnosticsGovernancePolicy added in v0.0.6

type JavaDiagnosticsGovernancePolicy struct {
	MaxParseErrors      int
	MaxFallbackWarnings int
}

JavaDiagnosticsGovernancePolicy configures threshold-based Java diagnostics checks.

type LintOptions added in v0.0.6

type LintOptions struct {
	JavaGovernance JavaDiagnosticsGovernancePolicy
}

LintOptions configures optional lint checks.

Jump to

Keyboard shortcuts

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