Package com.google.errorprone.scanner
Class BuiltInCheckerSuppliers
- java.lang.Object
-
- com.google.errorprone.scanner.BuiltInCheckerSuppliers
-
public class BuiltInCheckerSuppliers extends Object
Static helper class that providesScannerSupplier
s andBugChecker
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
All Methods Static Methods Concrete Methods 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 Detail
-
ENABLED_ERRORS
public static final com.google.common.collect.ImmutableSet<BugCheckerInfo> ENABLED_ERRORS
A list of all checks with severity ERROR that are on by default.
-
ENABLED_WARNINGS
public static final com.google.common.collect.ImmutableSet<BugCheckerInfo> ENABLED_WARNINGS
A list of all checks with severity WARNING that are on by default.
-
DISABLED_CHECKS
public static final com.google.common.collect.ImmutableSet<BugCheckerInfo> DISABLED_CHECKS
A list of all checks that are off by default.
-
-
Method Detail
-
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
public static ScannerSupplier allChecks()
Returns aScannerSupplier
with allBugChecker
s in Error Prone.
-
defaultChecks
public static ScannerSupplier defaultChecks()
Returns aScannerSupplier
with theBugChecker
s that are in the ENABLED lists.
-
errorChecks
public static ScannerSupplier errorChecks()
Returns aScannerSupplier
with theBugChecker
s that are in the ENABLED_ERRORS list.
-
-