Skip to main content
Version: Next

List of all checkers

Here is an overview of the checkers currently available in Infer.

Annotation Reachability​

Given pairs of source and sink annotations, e.g. @A and @B, this checker will warn whenever some method annotated with @A calls, directly or indirectly, another method annotated with @B. Besides the custom pairs, it is also possible to enable some built-in checks, such as @PerformanceCritical reaching @Expensive or @NoAllocation reaching new. It is also possible to model methods as if they were annotated, using regular expressions. This should also work in languages where there are no annotations. See flags starting with --annotation-reachability.

Visit here for more information.

Biabduction​

This analysis deals with a range of issues, many linked to memory safety.

***DEPRECATED*** This has been replaced by Pulse and will be removed in the next release.

Visit here for more information.

Buffer Overrun Analysis (InferBO)​

InferBO is a detector for out-of-bounds array accesses.

Visit here for more information.

Config Impact Analysis​

[EXPERIMENTAL] Collects function that are called without config checks.

Visit here for more information.

Cost: Complexity Analysis​

Computes the asymptotic complexity of functions with respect to execution cost or other user defined resources. Can be used to detect changes in the complexity with infer reportdiff.

Visit here for more information.

Static Constructor Stall Checker​

Detect if dispatch_once is called from a static constructor.

Visit here for more information.

Fragment Retains View​

Detects when Android fragments are not explicitly nullified before becoming unreachable.

Visit here for more information.

Impurity​

Detects functions with potential side-effects. Same as "purity", but implemented on top of Pulse.

Visit here for more information.

Inefficient keySet Iterator​

Check for inefficient uses of iterators that iterate on keys then lookup their values, instead of iterating on key-value pairs directly.

Visit here for more information.

Lineage​

Computes a dataflow graph

Visit here for more information.

Litho "Required Props"​

Checks that all non-optional @Props have been specified when constructing Litho components.

Visit here for more information.

Liveness​

Detection of dead stores and unused variables.

Visit here for more information.

Loop Hoisting​

Detect opportunities to hoist function calls that are invariant outside of loop bodies for efficiency.

Visit here for more information.

Parameter Not Null Checked​

An Objective-C-specific analysis to detect when a block parameter is used before being checked for null first.

Visit here for more information.

Pulse​

General-purpose memory and value analysis engine.

Visit here for more information.

Purity​

Detects pure (side-effect-free) functions. A different implementation of "impurity".

Visit here for more information.

RacerD​

Thread safety analysis.

Visit here for more information.

Resource Leak Lab Exercise​

Toy checker for the "resource leak" write-your-own-checker exercise.

Visit here for more information.

SIL validation​

This checker validates that all SIL instructions in all procedure bodies conform to a (front-end specific) subset of SIL.

Visit here for more information.

Static Initialization Order Fiasco​

Catches Static Initialization Order Fiascos in C++, that can lead to subtle, compiler-version-dependent errors.

Visit here for more information.

Scope Leakage​

The Java/Kotlin checker takes into account a set of "scope" annotations and a must-not-hold relation over the scopes. The checker raises an alarm if there exists a field access path from object A to object B, with respective scopes SA and SB, such that must-not-hold(SA, SB).

Visit here for more information.

Self in Block​

An Objective-C-specific analysis to detect when a block captures self.

Visit here for more information.

Starvation​

Detect various kinds of situations when no progress is being made because of concurrency errors.

Visit here for more information.

Topl​

Detect errors based on user-provided state machines describing temporal properties over multiple objects.

Visit here for more information.