Plugins/CheckerPlugins/CodeStyleChecker/DocStyleChecker.py

changeset 3587
e2f10b5fd032
parent 3585
f09a457c83fe
child 3588
ce1f00c0d96d
equal deleted inserted replaced
3586:6e3a6c5b58bf 3587:e2f10b5fd032
1238 elif functionName.startswith(('__', 'on_')): 1238 elif functionName.startswith(('__', 'on_')):
1239 if firstWord != 'private': 1239 if firstWord != 'private':
1240 self.__error(docstringContext.start() + lineNumber, 0, 1240 self.__error(docstringContext.start() + lineNumber, 0,
1241 "D232", 'private') 1241 "D232", 'private')
1242 elif functionName.startswith('_') or \ 1242 elif functionName.startswith('_') or \
1243 functionName.endswith('Event'): 1243 functionName.endswith('Event') or \
1244 functionName == 'event':
1244 if firstWord != 'protected': 1245 if firstWord != 'protected':
1245 self.__error(docstringContext.start() + lineNumber, 0, 1246 self.__error(docstringContext.start() + lineNumber, 0,
1246 "D232", 'protected') 1247 "D232", 'protected')
1247 else: 1248 else:
1248 if firstWord != 'public': 1249 if firstWord != 'public':

eric ide

mercurial