summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-07-25 14:11:53 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-07-25 14:11:53 -0500
commit559e08a09f6753a5d2c3630bd5e60294afee5815 (patch)
tree947b4eead8fe81a94f7a5be3ee2330e6a97fc472
parentfc035c4df280e1f10c2e1f73ce8c2ea2af5c99a7 (diff)
downloadflake8-bug/output-file.tar.gz
Set-up and stop our formatterbug/output-file
Without calling start and stop, our output file is not used by our Formatters and any formatting plugins. Related #180
-rw-r--r--src/flake8/main/application.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flake8/main/application.py b/src/flake8/main/application.py
index febe6c7..8269dc1 100644
--- a/src/flake8/main/application.py
+++ b/src/flake8/main/application.py
@@ -284,8 +284,10 @@ class Application(object):
# type: (Union[NoneType, List[str]]) -> NoneType
self.initialize(argv)
self.run_checks()
+ self.formatter.start()
self.report_errors()
self.report_benchmarks()
+ self.formatter.stop()
def run(self, argv=None):
# type: (Union[NoneType, List[str]]) -> NoneType