doclint

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Command doclint keeps documentation about the code as it is. It reads Go comments and Markdown prose (not code, strings or code blocks) and reports wording that narrates how the code got here: what changed, what it did before, what's temporary, who did it and when. History belongs in commit messages; docs and comments say what is and why.

Saying why something stays compatible with a planned change is fine ("kept a pointer so the store can change shape"), since it explains the code today. A line that must use a flagged word says so with "doclint:allow" and a reason, in a comment on that line (or an HTML comment in Markdown).

It also refuses a code block that draws 012's screen as text: a picture of 012 is a still drawn from a golden screen.

Usage: go run ./scripts/doclint [dirs or files...]

Jump to

Keyboard shortcuts

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