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

changeset 8205
4a0f1f896341
parent 8198
1c765dc90c21
child 8207
d359172d11be
diff -r fd477cded1c1 -r 4a0f1f896341 eric6/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py	Thu Apr 08 17:27:12 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py	Thu Apr 08 18:27:47 2021 +0200
@@ -863,7 +863,7 @@
         summary, lineNumber = self.__getSummaryLine(docstringContext)
         if (
             functionName + "(" in summary.replace(" ", "") and
-            not functionName + "()" in summary.replace(" ", "")
+            functionName + "()" not in summary.replace(" ", "")
         ):
             # report only, if it is not an abbreviated form (i.e. function() )
             self.__error(docstringContext.start() + lineNumber, 0, "D133")
@@ -1034,7 +1034,7 @@
             if (
                 summary and
                 not summary.endswith(".") and
-                not summary.split(None, 1)[0].lower() == "constructor"
+                summary.split(None, 1)[0].lower() != "constructor"
             ):
                 self.__error(
                     docstringContext.start() + lineNumber +

eric ide

mercurial