@ -319,19 +319,20 @@ let analyze = function
separate Analyze invocation is necessary , depending on the buck flavor used . * )
separate Analyze invocation is necessary , depending on the buck flavor used . * )
()
()
| _ ->
| _ ->
if ( Sys . file_exists Config . ( results_dir ^/ captured_dir_name ) ) < > ` Yes then (
let should_analyze , should_report = match Config . analyzer with
L . stderr " There was nothing to analyze, exiting " ;
Config . print_usage_exit ()
) ;
( match Config . analyzer with
| Infer | Eradicate | Checkers | Tracing | Crashcontext | Quandary | Threadsafety ->
| Infer | Eradicate | Checkers | Tracing | Crashcontext | Quandary | Threadsafety ->
execute_analyze () ;
true , true
report ()
| Linters ->
| Linters ->
report ()
false , true
| Capture | Compile ->
| Capture | Compile ->
()
false , false in
)
if ( should_analyze | | should_report )
&& ( Sys . file_exists Config . ( results_dir ^/ captured_dir_name ) ) < > ` Yes then (
L . stderr " There was nothing to analyze, exiting@. " ;
exit 1
) ;
if should_analyze then execute_analyze () ;
if should_report then report ()
(* * as the Config.fail_on_bug flag mandates, exit with error when an issue is reported *)
(* * as the Config.fail_on_bug flag mandates, exit with error when an issue is reported *)
let fail_on_issue_epilogue () =
let fail_on_issue_epilogue () =