src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py

branch
eric7
changeset 10069
435cc5875135
parent 10060
b946699e9e79
child 10437
2f70ca07f0af
diff -r 7febcdccb2a1 -r 435cc5875135 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py	Thu May 25 11:12:05 2023 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py	Thu May 25 19:51:47 2023 +0200
@@ -520,7 +520,7 @@
 
         return self.__multiLineNumbers, self.__docLineNumbers
 
-    def __fixReindent(self, line, pos, logical):
+    def __fixReindent(self, line, pos, logical):  # noqa: U100
         """
         Private method to fix a badly indented line.
 
@@ -582,7 +582,7 @@
         else:
             return left + replacement + right
 
-    def __fixD111(self, code, line, pos):
+    def __fixD111(self, code, line, pos):  # noqa: U100
         """
         Private method to fix docstring enclosed in wrong quotes.
 
@@ -613,7 +613,7 @@
         # Triple single quotes converted to triple double quotes.
         return (1, "FIXD111", [], 0)
 
-    def __fixD112(self, code, line, pos):
+    def __fixD112(self, code, line, pos):  # noqa: U100
         """
         Private method to fix docstring 'r' in leading quotes.
 
@@ -686,7 +686,7 @@
             self.__stack.append((fixId, code, line, pos))
             return (-1, "", [], fixId)
 
-    def __fixD131(self, code, line, pos):
+    def __fixD131(self, code, line, pos):  # noqa: U100
         """
         Private method to fix a docstring summary not ending with a
         period.
@@ -1035,7 +1035,7 @@
             self.__stack.append((fixId, code, line, pos))
             return (-1, "", [], fixId)
 
-    def __fixE101(self, code, line, pos):
+    def __fixE101(self, code, line, pos):  # noqa: U100
         """
         Private method to fix obsolete tab usage and indentation errors.
 
@@ -1337,7 +1337,7 @@
             self.__stackLogical.append((fixId, code, line, pos))
             return (-1, "", [], fixId)
 
-    def __fixE201(self, code, line, pos):
+    def __fixE201(self, code, line, pos):  # noqa: U100
         """
         Private method to fix extraneous whitespace.
 
@@ -1368,7 +1368,7 @@
         # Extraneous whitespace removed.
         return (1, "FIXE201", [], 0)
 
-    def __fixE221(self, code, line, pos):
+    def __fixE221(self, code, line, pos):  # noqa: U100
         """
         Private method to fix extraneous whitespace around operator or
         keyword.
@@ -1399,7 +1399,7 @@
         self.__source[line] = newText
         return (1, "FIXE221", [], 0)
 
-    def __fixE225(self, code, line, pos):
+    def __fixE225(self, code, line, pos):  # noqa: U100
         """
         Private method to fix extraneous whitespaces around operator.
 
@@ -1444,7 +1444,7 @@
         # Missing whitespaces added.
         return (1, "FIXE225", [], 0)
 
-    def __fixE231(self, code, line, pos):
+    def __fixE231(self, code, line, pos):  # noqa: U100
         """
         Private method to fix missing whitespace after ',;:'.
 
@@ -1469,7 +1469,7 @@
         # Missing whitespace added.
         return (1, "FIXE231", [], 0)
 
-    def __fixE251(self, code, line, pos):
+    def __fixE251(self, code, line, pos):  # noqa: U100
         """
         Private method to fix extraneous whitespace around keyword and
         default parameter equals.
@@ -1507,7 +1507,7 @@
         # Extraneous whitespace removed.
         return (1, "FIXE251", [], 0)
 
-    def __fixE261(self, code, line, pos):
+    def __fixE261(self, code, line, pos):  # noqa: U100
         """
         Private method to fix whitespace before or after inline comment.
 
@@ -1734,7 +1734,7 @@
             self.__stack.append((fixId, code, line, pos))
             return (-1, "", [], fixId)
 
-    def __fixE502(self, code, line, pos):
+    def __fixE502(self, code, line, pos):  # noqa: U100
         """
         Private method to fix redundant backslash within brackets.
 
@@ -1837,7 +1837,7 @@
             self.__stack.append((fixId, code, line, pos))
             return (-1, "", [], fixId)
 
-    def __fixE711(self, code, line, pos):
+    def __fixE711(self, code, line, pos):  # noqa: U100
         """
         Private method to fix comparison with None.
 
@@ -1997,7 +1997,7 @@
             self.__stack.append((fixId, code, line, pos))
             return (-1, "", [], fixId)
 
-    def __fixW291(self, code, line, pos):
+    def __fixW291(self, code, line, pos):  # noqa: U100
         """
         Private method to fix trailing whitespace.
 
@@ -2020,7 +2020,7 @@
         # Whitespace stripped from end of line.
         return (1, "FIXW291", [], 0)
 
-    def __fixW292(self, code, line, pos):
+    def __fixW292(self, code, line, pos):  # noqa: U100
         """
         Private method to fix a missing newline at the end of file.
 
@@ -2041,7 +2041,7 @@
         # newline added to end of file.
         return (1, "FIXW292", [], 0)
 
-    def __fixW391(self, code, line, pos):
+    def __fixW391(self, code, line, pos):  # noqa: U100
         """
         Private method to fix trailing blank lines.
 
@@ -2068,7 +2068,7 @@
         # Superfluous trailing blank lines removed from end of file.
         return (1, "FIXW391", [], 0)
 
-    def __fixW603(self, code, line, pos):
+    def __fixW603(self, code, line, pos):  # noqa: U100
         """
         Private method to fix the not equal notation.
 

eric ide

mercurial