public class BuiltInCheckerSuppliers extends Object
ScannerSupplier
s and BugChecker
s for the
built-in Error Prone checks, as opposed to plugin checks or checks used in tests.Modifier and Type | Field and 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.
|
Modifier and Type | Method and Description |
---|---|
static ScannerSupplier |
allChecks()
Returns a
ScannerSupplier with all BugChecker s in Error Prone. |
static ScannerSupplier |
defaultChecks()
Returns a
ScannerSupplier with the BugChecker s that are in the ENABLED lists. |
static ScannerSupplier |
errorChecks()
Returns a
ScannerSupplier with the BugChecker 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) |
public static final com.google.common.collect.ImmutableSet<BugCheckerInfo> ENABLED_ERRORS
public static final com.google.common.collect.ImmutableSet<BugCheckerInfo> ENABLED_WARNINGS
public static final com.google.common.collect.ImmutableSet<BugCheckerInfo> DISABLED_CHECKS
@SafeVarargs public static com.google.common.collect.ImmutableSet<BugCheckerInfo> getSuppliers(Class<? extends BugChecker>... checkers)
public static com.google.common.collect.ImmutableSet<BugCheckerInfo> getSuppliers(Iterable<Class<? extends BugChecker>> checkers)
public static ScannerSupplier allChecks()
ScannerSupplier
with all BugChecker
s in Error Prone.public static ScannerSupplier defaultChecks()
ScannerSupplier
with the BugChecker
s that are in the ENABLED lists.public static ScannerSupplier errorChecks()
ScannerSupplier
with the BugChecker
s that are in the ENABLED_ERRORS
list.Copyright © 2019. All rights reserved.