audit_godocs

command
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Command audit_godocs audits Go package and symbol documentation.

It parses the repository with go/parser and go/doc, then reports package comments, exported symbol comments, and optional test documentation issues in Markdown or JSON format.

Usage:

go run ./cmd/audit_godocs/ --format=markdown
go run ./cmd/audit_godocs/ --include-tests --fail-on-findings

Reported Categories

Findings are grouped by package comments, exported declarations, and optional test declarations. Package findings catch missing, malformed, or duplicated package comments; symbol findings catch exported declarations without useful comments; and test findings catch Test, Benchmark, Fuzz, and Example functions whose comments are missing or do not start with the function name.

Jump to

Keyboard shortcuts

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