8
0
Fork
You've already forked checkdoc
0
The checkdoc command scans Go packages for comment and documentation related issues. https://mellium.im/checkdoc/
  • Go 100%
Sam Whited 2ee8dc710e
all: bump deps to fix build issue with x/tools
Signed-off-by: Sam Whited <sam@samwhited.com>
2026年02月22日 20:54:50 -05:00
.woodpecker .woodpecker: use ourself when running checkdoc 2024年05月01日 07:53:49 -04:00
.gitignore checkdoc: new tool to check for package level docs 2019年09月06日 12:46:56 -05:00
analyzer.go all: use Codeberg CI (Woodpecker) 2022年07月15日 06:47:28 -04:00
go.mod all: bump deps to fix build issue with x/tools 2026年02月22日 20:54:50 -05:00
go.sum all: bump deps to fix build issue with x/tools 2026年02月22日 20:54:50 -05:00
header.go checkdoc: remove use of deprecated ioutil 2024年05月01日 07:49:19 -04:00
LICENSE checkdoc: new tool to check for package level docs 2019年09月06日 12:46:56 -05:00
main.go all: use Codeberg CI (Woodpecker) 2022年07月15日 06:47:28 -04:00
README.md all: add examples to readme 2024年10月03日 06:50:52 -04:00
tools.go all: use Codeberg CI (Woodpecker) 2022年07月15日 06:47:28 -04:00

checkdoc

Issue Tracker Docs Chat License

The checkdoc command scans Go packages for comment and documentation related lints. Currently the tool checks for:

  • Packages that are missing documentation comments
  • Exported identifiers that are missing documentation comments
  • Malformed or missing canonical import comments
  • Missing file header comments

If you'd like to contribute to the project, see CONTRIBUTING.md.

To use checkdoc first install it:

go install mellium.im/checkdoc@latest

Then run checkdoc -help to find out more about using it. For example, to run the file header check lint across an entire module:

checkdoc -fileheader.pattern='-' ./... <<EOF
Copyright \d\d\d\d The Mellium Contributors\.
Use of this source code is governed by the BSD 2-clause
license that can be found in the LICENSE file\.
EOF

License

The package may be used under the terms of the BSD 2-Clause License a copy of which may be found in the file "LICENSE".