doclint

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 11 Imported by: ? 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 checks that the repository's Markdown files conform to their syntax: the one check a docs-only change needs (ci.yml's docs-lint job; "as long as they properly conform to their syntax, I don't see why anything else needs to run"). It reads every tracked *.md file and reports each violation as file:line: message on stdout; the exit status is 1 when there is one, 2 when it could not run.

doclint [--root r]

Rules:

fence  a code fence (``` or ~~~) is closed by a fence of the same character, at least as long, before the end of the file
link   a relative link [text](path) or ![alt](path) names a file or folder that exists (the anchor and the query are not
       checked); absolute URLs, mailto: and a bare #anchor are not checked; links inside a code fence or an inline code
       span are not links
nul    no NUL byte outside a code fence

Files under testdata/, vendor/, receipts/ and docs/evidence/ are not read: fixtures and captured records hold what they hold on purpose (their links point into other checkouts). It takes seconds and needs no network.

Jump to

Keyboard shortcuts

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