eric6/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py

changeset 8207
d359172d11be
parent 8205
4a0f1f896341
child 8222
5994b80b8760
equal deleted inserted replaced
8206:adf11836cfce 8207:d359172d11be
20 ast.AsyncFunctionDef # __IGNORE_EXCEPTION__ 20 ast.AsyncFunctionDef # __IGNORE_EXCEPTION__
21 except AttributeError: 21 except AttributeError:
22 ast.AsyncFunctionDef = ast.FunctionDef 22 ast.AsyncFunctionDef = ast.FunctionDef
23 23
24 24
25 class DocStyleContext(object): 25 class DocStyleContext:
26 """ 26 """
27 Class implementing the source context. 27 Class implementing the source context.
28 """ 28 """
29 def __init__(self, source, startLine, contextType): 29 def __init__(self, source, startLine, contextType):
30 """ 30 """
114 @rtype str 114 @rtype str
115 """ 115 """
116 return self.__special 116 return self.__special
117 117
118 118
119 class DocStyleChecker(object): 119 class DocStyleChecker:
120 """ 120 """
121 Class implementing a checker for documentation string conventions. 121 Class implementing a checker for documentation string conventions.
122 """ 122 """
123 Codes = [ 123 Codes = [
124 "D101", "D102", "D103", "D104", "D105", 124 "D101", "D102", "D103", "D104", "D105",

eric ide

mercurial