Package com.google.errorprone.scanner
Class BuiltInCheckerSuppliers
java.lang.Object
com.google.errorprone.scanner.BuiltInCheckerSuppliers
public class BuiltInCheckerSuppliers extends Object
Static helper class that provides
ScannerSupplier
s and BugChecker
s for the
built-in Error Prone checks, as opposed to plugin checks or checks used in tests.-
Field Summary
Fields Modifier and Type Field Description static com.google.common.collect.ImmutableSet<BugCheckerInfo>
DISABLED_CHECKS
A list of all checks that are off by default.static com.google.common.collect.ImmutableSet<BugCheckerInfo>
ENABLED_ERRORS
A list of all checks with severity ERROR that are on by default.static com.google.common.collect.ImmutableSet<BugCheckerInfo>
ENABLED_WARNINGS
A list of all checks with severity WARNING that are on by default. -
Method Summary
Modifier and Type Method Description static ScannerSupplier
allChecks()
Returns aScannerSupplier
with allBugChecker
s in Error Prone.static ScannerSupplier
defaultChecks()
Returns aScannerSupplier
with theBugChecker
s that are in the ENABLED lists.static ScannerSupplier
errorChecks()
Returns aScannerSupplier
with theBugChecker
s that are in the ENABLED_ERRORS list.static com.google.common.collect.ImmutableSet<BugCheckerInfo>
getSuppliers(Class<? extends BugChecker>... checkers)
static com.google.common.collect.ImmutableSet<BugCheckerInfo>
getSuppliers(Iterable<Class<? extends BugChecker>> checkers)
-
Field Details
-
ENABLED_ERRORS
A list of all checks with severity ERROR that are on by default. -
ENABLED_WARNINGS
A list of all checks with severity WARNING that are on by default. -
DISABLED_CHECKS
A list of all checks that are off by default.
-
-
Method Details
-
getSuppliers
@SafeVarargs public static com.google.common.collect.ImmutableSet<BugCheckerInfo> getSuppliers(Class<? extends BugChecker>... checkers) -
getSuppliers
public static com.google.common.collect.ImmutableSet<BugCheckerInfo> getSuppliers(Iterable<Class<? extends BugChecker>> checkers) -
allChecks
Returns aScannerSupplier
with allBugChecker
s in Error Prone. -
defaultChecks
Returns aScannerSupplier
with theBugChecker
s that are in the ENABLED lists. -
errorChecks
Returns aScannerSupplier
with theBugChecker
s that are in the ENABLED_ERRORS list.
-