[infer] change filter semantics to included or not excluded

Summary: As per title.

Reviewed By: ezgicicek

Differential Revision: D26340077

fbshipit-source-id: 3fffc9db9
master
Nikos Gorogiannis 4 years ago committed by Facebook GitHub Bot
parent 54c3dafef8
commit 39c00d557e

@ -331,8 +331,7 @@ let load_filters () =
let filters_from_inferconfig inferconfig : filters = let filters_from_inferconfig inferconfig : filters =
let path_filter = let path_filter =
let whitelist_filter : path_filter = let whitelist_filter : path_filter =
if List.is_empty inferconfig.whitelist then default_path_filter is_matching (List.map ~f:Str.regexp inferconfig.whitelist)
else is_matching (List.map ~f:Str.regexp inferconfig.whitelist)
in in
let blacklist_filter : path_filter = let blacklist_filter : path_filter =
is_matching (List.map ~f:Str.regexp inferconfig.blacklist) is_matching (List.map ~f:Str.regexp inferconfig.blacklist)
@ -346,8 +345,8 @@ let filters_from_inferconfig inferconfig : filters =
function function
| source_file -> | source_file ->
whitelist_filter source_file whitelist_filter source_file
&& (not (blacklist_filter source_file)) || (not (blacklist_filter source_file))
&& not (blacklist_files_containing_filter source_file) && not (blacklist_files_containing_filter source_file)
in in
let error_filter = function let error_filter = function
| error_name -> | error_name ->

Loading…
Cancel
Save