MCPcopy
hub / github.com/PyCQA/flake8 / report_errors

Method report_errors

src/flake8/main/application.py:133–147  ·  view source on GitHub ↗

Report all the errors found by flake8 3.0. This also updates the :attr:`result_count` attribute with the total number of errors, warnings, and other messages found.

(self)

Source from the content-addressed store, hash-verified

131 self.formatter.show_benchmarks(statistics)
132
133 def report_errors(self) -> None:
134 """Report all the errors found by flake8 3.0.
135
136 This also updates the :attr:`result_count` attribute with the total
137 number of errors, warnings, and other messages found.
138 """
139 LOG.info("Reporting errors")
140 assert self.file_checker_manager is not None
141 results = self.file_checker_manager.report()
142 self.total_result_count, self.result_count = results
143 LOG.info(
144 "Found a total of %d violations and reported %d",
145 self.total_result_count,
146 self.result_count,
147 )
148
149 def report_statistics(self) -> None:
150 """Aggregate and report statistics from this run."""

Callers 2

reportMethod · 0.95
check_filesMethod · 0.80

Calls 1

reportMethod · 0.45

Tested by

no test coverage detected