[cleanup] kill useless filter_buckets option

Summary: The logic for filtering reports based on their buckets lives in InferPrint, so this code isn't doing anything.

Reviewed By: jvillard

Differential Revision: D4379966

fbshipit-source-id: 5a69304
master
Sam Blackshear 8 years ago committed by Facebook Github Bot
parent 1403e9c898
commit 61bfd1e579

@ -97,11 +97,6 @@ exception Wrong_argument_number of L.ml_loc
(** Turn an exception into a descriptive string, error description, location in ml source, and category *) (** Turn an exception into a descriptive string, error description, location in ml source, and category *)
let recognize_exception exn = let recognize_exception exn =
let filter_out_bucket desc =
Config.filter_buckets &&
match Localise.error_desc_get_bucket desc with
| None -> false
| Some bucket -> bucket <> Localise.BucketLevel.b1 in
let err_name, desc, (ml_loc_opt : L.ml_loc option), visibility, severity, force_kind, eclass = let err_name, desc, (ml_loc_opt : L.ml_loc option), visibility, severity, force_kind, eclass =
match exn with (* all the names of Exn_user errors must be defined in Localise *) match exn with (* all the names of Exn_user errors must be defined in Localise *)
| Abduction_case_not_implemented ml_loc -> | Abduction_case_not_implemented ml_loc ->
@ -308,11 +303,7 @@ let recognize_exception exn =
let exn_name = Exn.to_string exn in let exn_name = Exn.to_string exn in
(Localise.from_string exn_name, (Localise.from_string exn_name,
Localise.no_desc, None, Exn_developer, Low, None, Nocat) in Localise.no_desc, None, Exn_developer, Low, None, Nocat) in
let visibility' = (err_name, desc, ml_loc_opt, visibility, severity, force_kind, eclass)
if visibility = Exn_user && filter_out_bucket desc
then Exn_developer
else visibility in
(err_name, desc, ml_loc_opt, visibility', severity, force_kind, eclass)
(** print a description of the exception to the html output *) (** print a description of the exception to the html output *)
let print_exception_html s exn = let print_exception_html s exn =

@ -104,10 +104,6 @@ let dotty_output = "icfg.dot"
(** exit code to use for the --fail-on-issue option *) (** exit code to use for the --fail-on-issue option *)
let fail_on_issue_exit_code = 2 let fail_on_issue_exit_code = 2
(** If true, filter out errors in low likelyhood buckets, and only show then in developer
mode *)
let filter_buckets = false
let frontend_stats_dir_name = "frontend_stats" let frontend_stats_dir_name = "frontend_stats"
let global_tenv_filename = "global.tenv" let global_tenv_filename = "global.tenv"

@ -67,7 +67,6 @@ val default_in_zip_results_dir : string
val dotty_output : string val dotty_output : string
val etc_dir : string val etc_dir : string
val fail_on_issue_exit_code : int val fail_on_issue_exit_code : int
val filter_buckets : bool
val frontend_stats_dir_name : string val frontend_stats_dir_name : string
val global_tenv_filename : string val global_tenv_filename : string
val idempotent_getters : bool val idempotent_getters : bool

Loading…
Cancel
Save