Added a few more check patterns to the eric summary doc style checker.

Sat, 17 May 2014 16:53:00 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 17 May 2014 16:53:00 +0200
changeset 3585
f09a457c83fe
parent 3583
3e8e0346d639
child 3586
6e3a6c5b58bf

Added a few more check patterns to the eric summary doc style checker.

Plugins/CheckerPlugins/CodeStyleChecker/DocStyleChecker.py file | annotate | diff | comparison | revisions
--- 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