Skip to content

Documentation ​

Documentation LOC ​

documentation.doc_loc — Lines of a function's documentation.

ItemValue
DefinitionA function is documented when a comment block directly precedes it (above its decorators / attributes, with no blank line in between and not a trailing comment), or, where the language has docstrings, when its body starts with one.
Scopefunction
InputFunction documentation range
CalculationLines spanned by the documentation; 0 when the function is undocumented.
Unitlines
Language Applicabilitypartially_language_dependent
LimitationsAny comment style counts (not only /** or ///).
Reference-

Documentation Count ​

documentation.documented_function_count — Number of documented functions.

ItemValue
DefinitionA function is documented when a comment block directly precedes it (above its decorators / attributes, with no blank line in between and not a trailing comment), or, where the language has docstrings, when its body starts with one.
Scopefile, project
InputFunction documentation range
CalculationFunctions with documentation. Project: sum.
Unitcount
Language Applicabilitypartially_language_dependent
LimitationsAny comment style counts (not only /** or ///).
Reference-

Documentation Ratio ​

documentation.documentation_ratio — Share of documented functions.

ItemValue
DefinitionDocumentation Count / Function Count.
Scopefile, project
InputFunction documentation range
Calculationnot_applicable when there are no functions.
Unitratio
Language Applicabilitypartially_language_dependent
LimitationsAny comment style counts (not only /** or ///).
Reference-