From 34106a205677415be430253cb419f8cf77b55af8 Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Wed, 15 Mar 2017 22:32:33 -0700 Subject: [PATCH] [infer][java] no longer generate the itermediate report.csv for Java Buck projects Summary: Those files are not use to create the final JSON report Reviewed By: jvillard Differential Revision: D4714548 fbshipit-source-id: 3ba9a3b --- infer/src/backend/infer.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infer/src/backend/infer.ml b/infer/src/backend/infer.ml index 706e84a89..4e8a0c52a 100644 --- a/infer/src/backend/infer.ml +++ b/infer/src/backend/infer.ml @@ -298,12 +298,13 @@ let execute_analyze () = run_parallel_analysis () let report () = - let report_csv = Some (Config.results_dir ^/ "report.csv") in + let report_csv = + if Config.buck_cache_mode then None else Some (Config.results_dir ^/ "report.csv") in let report_json = Some (Config.results_dir ^/ "report.json") in InferPrint.main ~report_csv ~report_json ; (* Post-process the report according to the user config. By default, calls report.py to create a human-readable report. *) - match Config.buck, Config.report_hook with + match Config.buck_cache_mode, Config.report_hook with | true, _ (* do not bother calling the report hook when called from within Buck *) | false, None -> ()