[infer] add an option to deactivate the list of previously registered checkers

Summary:
Field Not Nullable                              2025
        Fragment Retains View                           81
        Inconsistent Subclass Parameter Annotation      1364
        Inconsistent Subclass Return Annotation         119
        Nullable Dereference                            6430
        Parameter Not Nullable                          10993
        Return Not Nullable                             1038
```

Reviewed By: ezgicicek

Differential Revision: D14339141

fbshipit-source-id: 7cebf1180
master
Jeremy Dubreil 6 years ago committed by Facebook Github Bot
parent 6df295060c
commit 9ad37a3712

@ -101,6 +101,10 @@ OPTIONS
--fragment-retains-view, --linters, --liveness, --ownership, --fragment-retains-view, --linters, --liveness, --ownership,
--racerd, --siof, --uninit (Conversely: --default-checkers) --racerd, --siof, --uninit (Conversely: --default-checkers)
--disable-all-checkers
Activates: turn off all the previously enabled checkers
(Conversely: --no-disable-all-checkers)
--eradicate --eradicate
Activates: the eradicate @Nullable checker for Java annotations Activates: the eradicate @Nullable checker for Java annotations
(Conversely: --no-eradicate) (Conversely: --no-eradicate)

@ -262,6 +262,10 @@ OPTIONS
differential report is desired. Source files should be specified differential report is desired. Source files should be specified
relative to project root or be absolute See also infer-report(1). relative to project root or be absolute See also infer-report(1).
--disable-all-checkers
Activates: turn off all the previously enabled checkers
(Conversely: --no-disable-all-checkers) See also infer-analyze(1).
--disable-issue-type +issue_type --disable-issue-type +issue_type
Do not show reports coming from this type of issue. Each checker Do not show reports coming from this type of issue. Each checker
can report a range of issue types. This option provides can report a range of issue types. This option provides

@ -262,6 +262,10 @@ OPTIONS
differential report is desired. Source files should be specified differential report is desired. Source files should be specified
relative to project root or be absolute See also infer-report(1). relative to project root or be absolute See also infer-report(1).
--disable-all-checkers
Activates: turn off all the previously enabled checkers
(Conversely: --no-disable-all-checkers) See also infer-analyze(1).
--disable-issue-type +issue_type --disable-issue-type +issue_type
Do not show reports coming from this type of issue. Each checker Do not show reports coming from this type of issue. Each checker
can report a range of issue types. This option provides can report a range of issue types. This option provides

@ -744,6 +744,15 @@ and ( annotation_reachability
, uninit ) , uninit )
let _disable_all_checkers : bool ref =
CLOpt.mk_bool ~long:"disable-all-checkers" "turn off all the previously enabled checkers"
~in_help:InferCommand.[(Analyze, manual_generic)]
~default:false
~f:(fun b ->
if b then disable_all_checkers () ;
b )
and annotation_reachability_custom_pairs = and annotation_reachability_custom_pairs =
CLOpt.mk_json ~long:"annotation-reachability-custom-pairs" CLOpt.mk_json ~long:"annotation-reachability-custom-pairs"
~in_help:InferCommand.[(Analyze, manual_java)] ~in_help:InferCommand.[(Analyze, manual_java)]

Loading…
Cancel
Save