Plugins/CheckerPlugins/CodeStyleChecker/DocStyleChecker.py

changeset 3585
f09a457c83fe
parent 3582
49f9c3695ef5
child 3587
e2f10b5fd032
--- a/Plugins/CheckerPlugins/CodeStyleChecker/DocStyleChecker.py	Sat May 17 11:43:07 2014 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/DocStyleChecker.py	Sat May 17 16:53:00 2014 +0200
@@ -1235,11 +1235,12 @@
                 if firstWord != 'constructor':
                     self.__error(docstringContext.start() + lineNumber, 0,
                                  "D232", 'constructor')
-            elif functionName.startswith('__'):
+            elif functionName.startswith(('__', 'on_')):
                 if firstWord != 'private':
                     self.__error(docstringContext.start() + lineNumber, 0,
                                  "D232", 'private')
-            elif functionName.startswith('_'):
+            elif functionName.startswith('_') or \
+                    functionName.endswith('Event'):
                 if firstWord != 'protected':
                     self.__error(docstringContext.start() + lineNumber, 0,
                              "D232", 'protected')

eric ide

mercurial