only add --blacklist-regex flag in buck mode

Reviewed By: jvillard

Differential Revision: D15624363

fbshipit-source-id: f0cf0758a
master
Martin Trojer 6 years ago committed by Facebook Github Bot
parent 4ea2cf9814
commit f05d98321a

@ -218,9 +218,11 @@ let capture ~changed_files = function
let infer_py = Config.lib_dir ^/ "python" ^/ "infer.py" in
let args =
List.rev_append Config.anon_args
( ( if not (List.is_empty Config.buck_blacklist) then
["--blacklist-regex"; "(" ^ String.concat ~sep:")|(" Config.buck_blacklist ^ ")"]
else [] )
( ( match (build_system, Config.buck_blacklist) with
| Config.BBuck, _ :: _ ->
["--blacklist-regex"; "(" ^ String.concat ~sep:")|(" Config.buck_blacklist ^ ")"]
| _ ->
[] )
@ (if not Config.continue_capture then [] else ["--continue"])
@ ( match Config.force_integration with
| None ->

Loading…
Cancel
Save