Sun, 29 Sep 2013 10:28:29 +0200
Added reporting of the statistics for doc style checks to the Python2 variant of the checker.
Plugins/CheckerPlugins/Pep8/Pep8Dialog.py | file | annotate | diff | comparison | revisions | |
UtilitiesPython2/Pep8Checker.py | file | annotate | diff | comparison | revisions |
--- a/Plugins/CheckerPlugins/Pep8/Pep8Dialog.py Sun Sep 29 10:22:44 2013 +0200 +++ b/Plugins/CheckerPlugins/Pep8/Pep8Dialog.py Sun Sep 29 10:28:29 2013 +0200 @@ -842,7 +842,6 @@ continue deferredFixes = {} - # TODO: add docstring type fixer = Pep8Fixer(self.__project, file, source, fixCodes, noFixCodes, maxLineLength, True) # always fix in place
--- a/UtilitiesPython2/Pep8Checker.py Sun Sep 29 10:22:44 2013 +0200 +++ b/UtilitiesPython2/Pep8Checker.py Sun Sep 29 10:28:29 2013 +0200 @@ -152,10 +152,12 @@ for a in args: print a print "PEP8_STATISTICS" - # TODO: add statistics for D for key in report.counters: if key.startswith(("E", "N", "W")): print key, report.counters[key] + for key in pep257Checker.counters: + if key.startswith("D"): + print key, pep257Checker.counters[key] else: print "NO_PEP8" print filename