Plugins/CheckerPlugins/CodeStyleChecker/pep8.py

changeset 3617
2f859c5dcfb4
parent 3616
081b69e00f3e
child 3629
98e90f613114
diff -r 081b69e00f3e -r 2f859c5dcfb4 Plugins/CheckerPlugins/CodeStyleChecker/pep8.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/pep8.py	Thu May 29 21:02:44 2014 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/pep8.py	Fri May 30 11:17:33 2014 +0200
@@ -1690,13 +1690,14 @@
             options.reporter = BaseReport if options.quiet else StandardReport
 
         options.select = tuple(options.select or ())
-        if not (options.select or options.ignore or
-                options.testsuite or options.doctest) and DEFAULT_IGNORE:
-            # The default choice: ignore controversial checks
-            options.ignore = tuple(DEFAULT_IGNORE.split(','))
-        else:
-            # Ignore all checks which are not explicitly selected
-            options.ignore = ('',) if options.select else tuple(options.ignore)
+#        if not (options.select or options.ignore or
+#                options.testsuite or options.doctest) and DEFAULT_IGNORE:
+#            # The default choice: ignore controversial checks
+#            options.ignore = tuple(DEFAULT_IGNORE.split(','))
+#        else:
+        # Ignore all checks which are not explicitly selected or all if no
+        # check is ignored or explicitly selected
+        options.ignore = ('',) if options.select else tuple(options.ignore)
         options.benchmark_keys = BENCHMARK_KEYS[:]
         options.ignore_code = self.ignore_code
         options.physical_checks = self.get_checks('physical_line')

eric ide

mercurial