rules

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupRule

func LookupRule(query string) (string, error)

LookupRule finds a rule by ID (e.g. "MDS001") or name (e.g. "line-length") and returns its full README content.

Types

type RuleInfo

type RuleInfo struct {
	ID          string
	Name        string
	Status      string
	Description string
	Content     string
}

RuleInfo holds metadata extracted from a rule README's front matter.

func ListRules

func ListRules() ([]RuleInfo, error)

ListRules returns all embedded rules sorted by ID.

Jump to

Keyboard shortcuts

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