doclint

command
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 9 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

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