brieflint

package
v0.167.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package brieflint finds what makes a skill or a brief go stale: dates, waits on something to ship, notes on a release that fixed something, a role's run where the role's name belongs, and a shell example whose bare > a rerun under noclobber refuses. Skills and briefs say the current state; their history lives in the issues and the changelog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Path string `json:"path"`
	Line int    `json:"line"`
	Rule string `json:"rule"`
	// Why says what to write instead.
	Why  string `json:"why"`
	Text string `json:"text"`
}

Finding is one line a rule refuses.

func Lint

func Lint(name string, r io.Reader) ([]Finding, error)

Lint reads one file's lines and returns what the rules refuse in them. The clobber rule reads only shell examples: inline code spans and fenced blocks without a language or with a shell's.

func LintFS

func LintFS(fsys fs.FS, root, prefix string) ([]Finding, error)

LintFS lints root in fsys: the file, or every Markdown file below the folder. Paths are named as fsys names them, joined to prefix.

Jump to

Keyboard shortcuts

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