lint

package
v0.0.5 Latest Latest
Warning

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

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

This section is empty.

Jump to

Keyboard shortcuts

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