[infer][checkers] remove the Eradicate analyzer option

Summary:
The Eradicate `Nullable` checker should now be run using:

  infer -a checkers --eradicate ...

Reviewed By: mbouaziz

Differential Revision: D5529226

fbshipit-source-id: 0de2956
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent f83284ad7c
commit 99b412e165

@ -206,15 +206,6 @@ end
let should_report (issue_kind: Exceptions.err_kind) issue_type error_desc eclass = let should_report (issue_kind: Exceptions.err_kind) issue_type error_desc eclass =
if not Config.filtering || Exceptions.equal_err_class eclass Exceptions.Linters then true if not Config.filtering || Exceptions.equal_err_class eclass Exceptions.Linters then true
else else
let analyzer_is_whitelisted =
match Config.analyzer with
| Eradicate
-> true
| BiAbduction | CaptureOnly | Checkers | CompileOnly | Crashcontext | Linters
-> false
in
if analyzer_is_whitelisted then true
else
let issue_kind_is_blacklisted = let issue_kind_is_blacklisted =
match issue_kind with Kinfo -> true | Kerror | Kwarning | Kadvice | Klike -> false match issue_kind with Kinfo -> true | Kerror | Kwarning | Kadvice | Klike -> false
in in

@ -21,7 +21,6 @@ type analyzer =
| BiAbduction | BiAbduction
| CaptureOnly | CaptureOnly
| CompileOnly | CompileOnly
| Eradicate
| Checkers | Checkers
| Crashcontext | Crashcontext
| Linters | Linters
@ -34,7 +33,6 @@ let string_to_analyzer =
; ("checkers", Checkers) ; ("checkers", Checkers)
; ("compile", CompileOnly) ; ("compile", CompileOnly)
; ("crashcontext", Crashcontext) ; ("crashcontext", Crashcontext)
; ("eradicate", Eradicate)
; ("infer", BiAbduction) ; ("infer", BiAbduction)
; ("linters", Linters) ] ; ("linters", Linters) ]
@ -559,7 +557,6 @@ and analyzer =
BiAbduction BiAbduction
| CaptureOnly | CaptureOnly
| CompileOnly | CompileOnly
| Eradicate
| Checkers | Checkers
| Crashcontext | Crashcontext
| Linters | Linters
@ -1782,8 +1779,6 @@ let post_parsing_initialization command_opt =
-> biabduction := true -> biabduction := true
| Some Crashcontext | Some Crashcontext
-> crashcontext := true -> crashcontext := true
| Some Eradicate
-> eradicate := true
| Some (CaptureOnly | CompileOnly | Checkers | Linters) | Some (CaptureOnly | CompileOnly | Checkers | Linters)
-> () -> ()
| None | None

@ -18,7 +18,6 @@ type analyzer =
| BiAbduction | BiAbduction
| CaptureOnly | CaptureOnly
| CompileOnly | CompileOnly
| Eradicate
| Checkers | Checkers
| Crashcontext | Crashcontext
| Linters | Linters

@ -52,7 +52,7 @@ let add_flavor_to_target target =
-> add "infer-capture-all" -> add "infer-capture-all"
| None, (BiAbduction | Checkers) | None, (BiAbduction | Checkers)
-> add "infer" -> add "infer"
| None, (Eradicate | Crashcontext) | None, Crashcontext
-> failwithf "Analyzer %s is Java-only; not supported with Buck flavors" -> failwithf "Analyzer %s is Java-only; not supported with Buck flavors"
(Config.string_of_analyzer Config.analyzer) (Config.string_of_analyzer Config.analyzer)

@ -416,7 +416,7 @@ let analyze_and_report ~changed_files mode =
(false, false) (false, false)
| _, (CaptureOnly | CompileOnly) | _, (CaptureOnly | CompileOnly)
-> (false, false) -> (false, false)
| _, (BiAbduction | Checkers | Crashcontext | Eradicate) | _, (BiAbduction | Checkers | Crashcontext)
-> (true, true) -> (true, true)
| _, Linters | _, Linters
-> (false, true) -> (false, true)

@ -7,8 +7,8 @@
TESTS_DIR = ../../.. TESTS_DIR = ../../..
ANALYZER = eradicate ANALYZER = checkers
INFER_OPTIONS = --eradicate-return-over-annotated --eradicate-optional-present --no-filtering --debug-exceptions INFER_OPTIONS = --no-default-checkers --eradicate --eradicate-return-over-annotated --eradicate-optional-present --debug-exceptions
INFERPRINT_OPTIONS = --issues-tests INFERPRINT_OPTIONS = --issues-tests
SOURCES = $(wildcard *.java) SOURCES = $(wildcard *.java)

Loading…
Cancel
Save