Home | Trees | Index | Help |
|
---|
|
Documentation completeness checker. DocChecker
can be
used to check that specified classes of objects are documented. To check
the documentation for a group of objects, you should create a
DocChecker
from a DocIndex that
documents those objects; and then use the check
method to run specified checks on the objects' documentation.
DocChecker
. These constants are
divided into three groups.
DESCR_LAZY
; AUTHOR;
and VERSION.
>>> checker.check(DocChecker.MODULE | DocChecker.DESCR)
To specify multiple values from a single group, simply or their values
together:
>>> checker.check(DocChecker.MODULE | DocChecker.CLASS |
... DocChecker.FUNC | DocChecker.DESCR_LAZY)
|
|||
__init__(self,
docindex)
Create a new DocChecker that can be used to run
checks on the documentation of the objects documented by
docindex
|
|||
boolean
|
check(self,
*check_sets)
Run the specified checks on the documentation of the objects contained by this DocChecker 's
DocIndex .
|
||
_check(self, checks) | |||
_name(self, doc) | |||
None
|
_check_basic(self,
doc)
Check the description, author, version, and see-also fields of doc .
|
||
None
|
_check_module(self,
doc)
Run checks on the module whose APIDoc is doc .
|
||
None
|
_check_class(self,
doc)
Run checks on the class whose APIDoc is doc .
|
||
_check_property(self, doc) | |||
None
|
_check_var(self,
doc)
Run checks on the variable whose documentation is var
and whose name is name .
|
||
None
|
_check_func(self,
doc)
Run checks on the function whose APIDoc is doc .
|
||
warning(self, msg, doc) |
|
|||
PROPERTY | |||
ALL | |||
Types | |||
---|---|---|---|
MODULE | Type specifier that indicates that the documentation of modules should be checked. | ||
CLASS | Type specifier that indicates that the documentation of classes should be checked. | ||
FUNC | Type specifier that indicates that the documentation of functions should be checked. | ||
VAR | Type specifier that indicates that the documentation of module variables should be checked. | ||
PARAM | Type specifier that indicates that the documentation of function and method parameters should be checked. | ||
RETURN | Type specifier that indicates that the documentation of return values should be checked. | ||
ALL_T | Type specifier that indicates that the documentation of all objects should be checked. | ||
CVAR | Type specifier that indicates that the documentation of class variables should be checked. | ||
IVAR | Type specifier that indicates that the documentation of instance variables should be checked. | ||
Checks | |||
TYPE | Check specifier that indicates that every variable and parameter
should have a @type field. |
||
AUTHOR | Check specifier that indicates that every object should have an
author field. |
||
VERSION | Check specifier that indicates that every object should have a
version field. |
||
DESCR | Check specifier that indicates that every object should have a description. | ||
ALL_C | Check specifier that indicates that all checks should be run. | ||
Publicity | |||
PRIVATE | Specifier that indicates that private objects should be checked. |
|
DocChecker that can be used to run checks on
the documentation of the objects documented by docindex
|
DocChecker 's DocIndex . Any errors
found are printed to standard out.
|
|
|
doc . This is used as a helper function by _check_module, _check_class, and _check_func.
|
doc .
|
doc .
|
|
var and
whose name is name .
|
doc .
|
|
|
MODULEType specifier that indicates that the documentation of modules should be checked.
|
CLASSType specifier that indicates that the documentation of classes should be checked.
|
FUNCType specifier that indicates that the documentation of functions should be checked.
|
VARType specifier that indicates that the documentation of module variables should be checked.
|
PARAMType specifier that indicates that the documentation of function and method parameters should be checked.
|
RETURNType specifier that indicates that the documentation of return values should be checked.
|
PROPERTY
|
ALL_TType specifier that indicates that the documentation of all objects should be checked.
|
TYPECheck specifier that indicates that every variable and parameter should have a@type field.
|
AUTHORCheck specifier that indicates that every object should have anauthor field.
|
VERSIONCheck specifier that indicates that every object should have aversion field.
|
DESCRCheck specifier that indicates that every object should have a description.
|
ALL_CCheck specifier that indicates that all checks should be run.
|
PRIVATESpecifier that indicates that private objects should be checked.
|
ALL
|
CVARType specifier that indicates that the documentation of class variables should be checked.
|
IVARType specifier that indicates that the documentation of instance variables should be checked.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 3.0alpha2 on Tue Apr 11 17:33:55 2006 | http://epydoc.sf.net |