@ -382,19 +382,19 @@ let report ?(suppress_console= false) () =
let analyze_and_report ? suppress_console_report ~ changed_files mode =
let analyze_and_report ? suppress_console_report ~ changed_files mode =
let should_analyze , should_report =
let should_analyze , should_report =
match ( mode , Config . analyzer ) with
match ( Config . command , mode , Config . analyzer ) with
| PythonCapture ( BBuck , _ ) , _ when not Config . flavors ->
| _ , PythonCapture ( BBuck , _ ) , _ when not Config . flavors ->
(* In Buck mode when compilation db is not used, analysis is invoked from capture if buck flavors are not used *)
(* In Buck mode when compilation db is not used, analysis is invoked from capture if buck flavors are not used *)
( false , false )
( false , false )
| _ when Config . infer_is_clang | | Config . infer_is_javac ->
| _ when Config . infer_is_clang | | Config . infer_is_javac ->
(* Called from another integration to do capture only. *)
(* Called from another integration to do capture only. *)
( false , false )
( false , false )
| _ , ( CaptureOnly | CompileOnly ) ->
| _ , _ , Linters ->
( false , true )
| ( Capture | Compile ) , _ , _ | _ , _ , ( CaptureOnly | CompileOnly ) ->
( false , false )
( false , false )
| _ , ( BiAbduction | Checkers | Crashcontext ) ->
| _ , _, (BiAbduction | Checkers | Crashcontext ) ->
( true , true )
( true , true )
| _ , Linters ->
( false , true )
in
in
let should_merge =
let should_merge =
match mode with
match mode with
@ -579,4 +579,3 @@ let read_config_changed_files () =
| Error error ->
| Error error ->
L . external_error " Error reading the changed files index '%s': %s@. " index error ;
L . external_error " Error reading the changed files index '%s': %s@. " index error ;
None
None