Doc comments for packages and exported identifiers
Every package must have a package comment, and each exported identifier must have a comment starting with the identifier name and a full-sentence summary.
style-conventionsreadability-refactor+2
High
Docstrings required for public APIs (PEP 257 style)
All public modules, classes, and functions must include a docstring immediately after the definition, using PEP 257 conventions (one-line summary + optional sections like Args, Returns, Raises).
style-conventionsreadability-refactor+2
High
Document safety, panics, and errors
When a function is unsafe, may panic, or returns Result, include sections # Safety, # Panics, and/or error conditions in the docs.
readability-refactormaintainability+1
High
Javadoc required for public types and methods
All public classes, interfaces, and methods must include Javadoc with a summary sentence, @param for each parameter, @return when not void, and @throws where applicable.
style-conventionsreadability-refactor+2
High
JSDoc required for exported APIs
All exported JS/TS functions, classes, and public members must include JSDoc with a summary and @param/@returns; include @throws when applicable.
style-conventionsreadability-refactor+2
High
Keep docstrings consistent with signature and behavior
Docstrings must match parameter names, optional defaults, return type, and raised exceptions; update the docstring in the same PR as any signature change.
style-conventionsmaintainability+1
High
XML documentation for public APIs
All public types and members must have XML documentation comments with <summary>, <param>, <returns> (if non-void), and <exception> when thrown.
style-conventionsreadability-refactor+1
Low
Document async/Promise behavior and errors
For async functions or functions returning Promise, document resolve value, rejection conditions, and usage with await; include @throws or @returns {Promise<Type>}.
style-conventionsreadability-refactor+1
Low
First sentence is a clear summary; document errors
The first sentence should be a standalone summary used by godoc. For functions returning error, state error conditions succinctly.
readability-refactormaintainability+1
Low
Use @since/@deprecated with guidance
When introducing or deprecating public APIs, include @since for introductions and @deprecated with migration notes and links for removals.
maintainabilityreadability-refactor+1
Low
Use <inheritdoc/> judiciously and document exceptions explicitly
Use <inheritdoc/> to inherit docs for overrides/implementations, but explicitly add <exception> and behavior differences when applicable.
maintainabilityreadability-refactor+1
Low
Use item docs (///) and module/crate docs (!//) with examples
Document public items with /// and modules/crates with //!; include minimal runnable examples that pass doctests where applicable.