Class BuiltInCheckerSuppliers
java.lang.Object
com.google.errorprone.scanner.BuiltInCheckerSuppliers
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
Modifier and TypeFieldDescriptionstatic final com.google.common.collect.ImmutableSet
<BugCheckerInfo> A list of all checks that are off by default.static final com.google.common.collect.ImmutableSet
<BugCheckerInfo> A list of all checks with severity ERROR that are on by default.static final com.google.common.collect.ImmutableSet
<BugCheckerInfo> A list of all checks with severity WARNING that are on by default. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScannerSupplier
Returns aScannerSupplier
with allBugChecker
s in Error Prone.static ScannerSupplier
Returns aScannerSupplier
with theBugChecker
s that are in the ENABLED lists.static ScannerSupplier
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) static ScannerSupplier
Returns aScannerSupplier
with theBugChecker
s that are in the ENABLED_WARNINGS list.
-
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. -
warningChecks
Returns aScannerSupplier
with theBugChecker
s that are in the ENABLED_WARNINGS list.
-