[infer] no longer run the annotation reachability and immutable cast checkers by default

Reviewed By: mbouaziz

Differential Revision: D14356832

fbshipit-source-id: 197f17a40
master
Jeremy Dubreil 6 years ago committed by Facebook Github Bot
parent 8a7363b16b
commit 34a9d36d31

@ -13,13 +13,13 @@ DESCRIPTION
OPTIONS OPTIONS
--no-annotation-reachability --annotation-reachability
Deactivates: the annotation reachability checker. Given a pair of Activates: the annotation reachability checker. Given a pair of
source and sink annotation, e.g. @PerformanceCritical and source and sink annotation, e.g. @PerformanceCritical and
@Expensive, this checker will warn whenever some method annotated @Expensive, this checker will warn whenever some method annotated
with @PerformanceCritical calls, directly or indirectly, another with @PerformanceCritical calls, directly or indirectly, another
method annotated with @Expensive (Conversely: method annotated with @Expensive (Conversely:
--annotation-reachability) --no-annotation-reachability)
--annotation-reachability-only --annotation-reachability-only
Activates: Enable --annotation-reachability and disable all other Activates: Enable --annotation-reachability and disable all other
@ -97,10 +97,9 @@ OPTIONS
values. (default: 0) values. (default: 0)
--no-default-checkers --no-default-checkers
Deactivates: Default checkers: --annotation-reachability, Deactivates: Default checkers: --biabduction,
--biabduction, --fragment-retains-view, --immutable-cast, --fragment-retains-view, --linters, --liveness, --ownership,
--linters, --liveness, --ownership, --racerd, --siof, --uninit --racerd, --siof, --uninit (Conversely: --default-checkers)
(Conversely: --default-checkers)
--eradicate --eradicate
Activates: the eradicate @Nullable checker for Java annotations Activates: the eradicate @Nullable checker for Java annotations
@ -131,11 +130,11 @@ OPTIONS
Show this manual with all internal options in the INTERNAL OPTIONS Show this manual with all internal options in the INTERNAL OPTIONS
section section
--no-immutable-cast --immutable-cast
Deactivates: the detection of object cast from immutable type to Activates: the detection of object cast from immutable type to
mutable type. For instance, it will detect cast from ImmutableList mutable type. For instance, it will detect cast from ImmutableList
to List, ImmutableMap to Map, and ImmutableSet to Set. to List, ImmutableMap to Map, and ImmutableSet to Set.
(Conversely: --immutable-cast) (Conversely: --no-immutable-cast)
--immutable-cast-only --immutable-cast-only
Activates: Enable --immutable-cast and disable all other checkers Activates: Enable --immutable-cast and disable all other checkers

@ -54,13 +54,13 @@ OPTIONS
supported options. The following is a list of all the supported supported options. The following is a list of all the supported
options (see also --help-full for options reserved for internal use). options (see also --help-full for options reserved for internal use).
--no-annotation-reachability --annotation-reachability
Deactivates: the annotation reachability checker. Given a pair of Activates: the annotation reachability checker. Given a pair of
source and sink annotation, e.g. @PerformanceCritical and source and sink annotation, e.g. @PerformanceCritical and
@Expensive, this checker will warn whenever some method annotated @Expensive, this checker will warn whenever some method annotated
with @PerformanceCritical calls, directly or indirectly, another with @PerformanceCritical calls, directly or indirectly, another
method annotated with @Expensive (Conversely: method annotated with @Expensive (Conversely:
--annotation-reachability) See also infer-analyze(1). --no-annotation-reachability) See also infer-analyze(1).
--annotation-reachability-custom-pairs json --annotation-reachability-custom-pairs json
Specify custom sources/sink for the annotation reachability Specify custom sources/sink for the annotation reachability
@ -243,10 +243,10 @@ OPTIONS
infer-reportdiff(1), and infer-run(1). infer-reportdiff(1), and infer-run(1).
--no-default-checkers --no-default-checkers
Deactivates: Default checkers: --annotation-reachability, Deactivates: Default checkers: --biabduction,
--biabduction, --fragment-retains-view, --immutable-cast, --fragment-retains-view, --linters, --liveness, --ownership,
--linters, --liveness, --ownership, --racerd, --siof, --uninit --racerd, --siof, --uninit (Conversely: --default-checkers)
(Conversely: --default-checkers) See also infer-analyze(1). See also infer-analyze(1).
--no-default-linters --no-default-linters
Deactivates: Use the default linters for the analysis. Deactivates: Use the default linters for the analysis.
@ -417,11 +417,11 @@ OPTIONS
Activates: Generate html report. (Conversely: --no-html) Activates: Generate html report. (Conversely: --no-html)
See also infer-explore(1). See also infer-explore(1).
--no-immutable-cast --immutable-cast
Deactivates: the detection of object cast from immutable type to Activates: the detection of object cast from immutable type to
mutable type. For instance, it will detect cast from ImmutableList mutable type. For instance, it will detect cast from ImmutableList
to List, ImmutableMap to Map, and ImmutableSet to Set. to List, ImmutableMap to Map, and ImmutableSet to Set.
(Conversely: --immutable-cast) See also infer-analyze(1). (Conversely: --no-immutable-cast) See also infer-analyze(1).
--immutable-cast-only --immutable-cast-only
Activates: Enable --immutable-cast and disable all other checkers Activates: Enable --immutable-cast and disable all other checkers

@ -54,13 +54,13 @@ OPTIONS
supported options. The following is a list of all the supported supported options. The following is a list of all the supported
options (see also --help-full for options reserved for internal use). options (see also --help-full for options reserved for internal use).
--no-annotation-reachability --annotation-reachability
Deactivates: the annotation reachability checker. Given a pair of Activates: the annotation reachability checker. Given a pair of
source and sink annotation, e.g. @PerformanceCritical and source and sink annotation, e.g. @PerformanceCritical and
@Expensive, this checker will warn whenever some method annotated @Expensive, this checker will warn whenever some method annotated
with @PerformanceCritical calls, directly or indirectly, another with @PerformanceCritical calls, directly or indirectly, another
method annotated with @Expensive (Conversely: method annotated with @Expensive (Conversely:
--annotation-reachability) See also infer-analyze(1). --no-annotation-reachability) See also infer-analyze(1).
--annotation-reachability-custom-pairs json --annotation-reachability-custom-pairs json
Specify custom sources/sink for the annotation reachability Specify custom sources/sink for the annotation reachability
@ -243,10 +243,10 @@ OPTIONS
infer-reportdiff(1), and infer-run(1). infer-reportdiff(1), and infer-run(1).
--no-default-checkers --no-default-checkers
Deactivates: Default checkers: --annotation-reachability, Deactivates: Default checkers: --biabduction,
--biabduction, --fragment-retains-view, --immutable-cast, --fragment-retains-view, --linters, --liveness, --ownership,
--linters, --liveness, --ownership, --racerd, --siof, --uninit --racerd, --siof, --uninit (Conversely: --default-checkers)
(Conversely: --default-checkers) See also infer-analyze(1). See also infer-analyze(1).
--no-default-linters --no-default-linters
Deactivates: Use the default linters for the analysis. Deactivates: Use the default linters for the analysis.
@ -417,11 +417,11 @@ OPTIONS
Activates: Generate html report. (Conversely: --no-html) Activates: Generate html report. (Conversely: --no-html)
See also infer-explore(1). See also infer-explore(1).
--no-immutable-cast --immutable-cast
Deactivates: the detection of object cast from immutable type to Activates: the detection of object cast from immutable type to
mutable type. For instance, it will detect cast from ImmutableList mutable type. For instance, it will detect cast from ImmutableList
to List, ImmutableMap to Map, and ImmutableSet to Set. to List, ImmutableMap to Map, and ImmutableSet to Set.
(Conversely: --immutable-cast) See also infer-analyze(1). (Conversely: --no-immutable-cast) See also infer-analyze(1).
--immutable-cast-only --immutable-cast-only
Activates: Enable --immutable-cast and disable all other checkers Activates: Enable --immutable-cast and disable all other checkers

@ -631,7 +631,7 @@ and ( annotation_reachability
var var
in in
let annotation_reachability = let annotation_reachability =
mk_checker ~default:true ~long:"annotation-reachability" mk_checker ~default:false ~long:"annotation-reachability"
"the annotation reachability checker. Given a pair of source and sink annotation, e.g. \ "the annotation reachability checker. Given a pair of source and sink annotation, e.g. \
@PerformanceCritical and @Expensive, this checker will warn whenever some method annotated \ @PerformanceCritical and @Expensive, this checker will warn whenever some method annotated \
with @PerformanceCritical calls, directly or indirectly, another method annotated with \ with @PerformanceCritical calls, directly or indirectly, another method annotated with \
@ -648,7 +648,7 @@ and ( annotation_reachability
mk_checker ~long:"fragment-retains-view" ~default:true mk_checker ~long:"fragment-retains-view" ~default:true
"detects when Android fragments are not explicitly nullified before becoming unreabable" "detects when Android fragments are not explicitly nullified before becoming unreabable"
and immutable_cast = and immutable_cast =
mk_checker ~long:"immutable-cast" ~default:true mk_checker ~long:"immutable-cast" ~default:false
"the detection of object cast from immutable type to mutable type. For instance, it will \ "the detection of object cast from immutable type to mutable type. For instance, it will \
detect cast from ImmutableList to List, ImmutableMap to Map, and ImmutableSet to Set." detect cast from ImmutableList to List, ImmutableMap to Map, and ImmutableSet to Set."
and linters = mk_checker ~long:"linters" ~default:true "syntactic linters" and linters = mk_checker ~long:"linters" ~default:true "syntactic linters"

Loading…
Cancel
Save