Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

changeset 3549
96ebf42cd960
parent 3515
1b8381afe38f
child 3564
4bccb8dd0bbd
diff -r c2a187c63209 -r 96ebf42cd960 Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Tue Apr 29 18:02:02 2014 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Tue Apr 29 18:22:44 2014 +0200
@@ -94,14 +94,14 @@
         excludeMessages (str), includeMessages (str), repeatMessages
         (bool), fixCodes (str), noFixCodes (str), fixIssues (bool),
         maxLineLength (int), hangClosing (bool), docType (str), errors
-        (list of str), eol (str), encoding (str))
+        (list of str), eol (str), encoding (str), backup (bool))
     @return tuple of stats (dict) and results (tuple for each found violation
         of style (tuple of lineno (int), position (int), text (str), ignored
             (bool), fixed (bool), autofixing (bool), fixedMsg (str)))
     """
     excludeMessages, includeMessages, \
         repeatMessages, fixCodes, noFixCodes, fixIssues, maxLineLength, \
-        hangClosing, docType, errors, eol, encoding = args
+        hangClosing, docType, errors, eol, encoding, backup = args
     
     stats = {}
     # avoid 'Encoding declaration in unicode string' exception on Python2
@@ -116,7 +116,7 @@
         from CodeStyleFixer import CodeStyleFixer
         fixer = CodeStyleFixer(
             filename, source, fixCodes, noFixCodes,
-            maxLineLength, True, eol)  # always fix in place
+            maxLineLength, True, eol, backup)  # always fix in place
     else:
         fixer = None
     

eric ide

mercurial