Plugins/CheckerPlugins/CodeStyleChecker/DocStyleChecker.py

changeset 6051
6e09a9a73cb7
parent 6048
82ad8ec9548c
child 6170
2bcf6e5637e7
diff -r 88eba84f184b -r 6e09a9a73cb7 Plugins/CheckerPlugins/CodeStyleChecker/DocStyleChecker.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/DocStyleChecker.py	Sun Dec 31 17:06:01 2017 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/DocStyleChecker.py	Sun Dec 31 18:54:06 2017 +0100
@@ -137,7 +137,7 @@
         "D130", "D131", "D132", "D133", "D134",
         "D141", "D142", "D143", "D144", "D145",
         
-        "D203", "D205",
+        "D203", "D205", "D206",
         "D221", "D222",
         "D231", "D232", "D234", "D235", "D236", "D237", "D238", "D239",
         "D242", "D243", "D244", "D245", "D246", "D247",
@@ -232,7 +232,7 @@
                 "functionDocstring": [
                 ],
                 "classDocstring": [
-                    (self.__checkClassDocstring, ("D104", "D205")),
+                    (self.__checkClassDocstring, ("D104", "D205", "D206")),
                     (self.__checkEricNoBlankBeforeAndAfterClassOrFunction,
                      ("D242", "D243")),
                     (self.__checkEricSignal, ("D260", "D261", "D262", "D263")),
@@ -750,6 +750,12 @@
         if (not docstring or not docstring.strip() or
                 not docstring.strip('\'"')):
             self.__error(context.start(), 0, code)
+            return
+        
+        if self.__docType == "eric" and \
+           docstring.strip('\'"').strip() == "Class documentation goes here.":
+            self.__error(context.start(), 0, "D206")
+            return
     
     def __checkTripleDoubleQuotes(self, docstringContext, context):
         """

eric ide

mercurial