Do not analyze in linters mode

Reviewed By: jberdine

Differential Revision: D3819515

fbshipit-source-id: 993cb58
master
Dulma Churchill 8 years ago committed by Facebook Github Bot 9
parent 8ab9a6c714
commit ab70143e1b

@ -507,17 +507,15 @@ class AnalyzerWrapper(object):
stats_path = os.path.join(self.args.infer_out, config.STATS_FILENAME)
utils.dump_json_to_path(self.stats, stats_path)
def analyze_and_report(self):
should_print_errors = False
if self.args.analyzer not in [config.ANALYZER_COMPILE,
config.ANALYZER_CAPTURE]:
if self.analyze() == os.EX_OK:
def report_proc_stats(self):
self.read_proc_stats()
self.print_analysis_stats()
def report(self):
reporting_start_time = time.time()
report_status = self.create_report()
elapsed = utils.elapsed_time(reporting_start_time)
self.timing['reporting'] = elapsed
self.read_proc_stats()
self.print_analysis_stats()
if report_status == os.EX_OK and not self.args.buck:
json_report = os.path.join(self.args.infer_out,
config.JSON_REPORT_FILENAME)
@ -530,6 +528,16 @@ class AnalyzerWrapper(object):
issues.print_and_save_errors(json_report,
bugs_out, xml_out)
def analyze_and_report(self):
should_print_errors = False
if self.args.analyzer not in [config.ANALYZER_COMPILE,
config.ANALYZER_CAPTURE]:
if self.args.analyzer == config.ANALYZER_LINTERS:
self.report()
elif self.analyze() == os.EX_OK:
self.report_proc_stats()
self.report()
def print_analysis_stats(self):
files_total = self.stats['int']['files']
files_str = utils.get_plural('file', files_total)

Loading…
Cancel
Save