Class BuiltInCheckerSuppliers
java.lang.Object
com.google.errorprone.scanner.BuiltInCheckerSuppliers
Static helper class that provides
ScannerSuppliers and BugCheckers for the
built-in Error Prone checks, as opposed to plugin checks or checks used in tests.-
Field Summary
FieldsModifier 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 ScannerSupplierReturns aScannerSupplierwith allBugCheckers in Error Prone.static ScannerSupplierReturns aScannerSupplierwith theBugCheckers that are in the ENABLED lists.static ScannerSupplierReturns aScannerSupplierwith theBugCheckers 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 ScannerSupplierReturns aScannerSupplierwith theBugCheckers 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 aScannerSupplierwith allBugCheckers in Error Prone. -
defaultChecks
Returns aScannerSupplierwith theBugCheckers that are in the ENABLED lists. -
errorChecks
Returns aScannerSupplierwith theBugCheckers that are in the ENABLED_ERRORS list. -
warningChecks
Returns aScannerSupplierwith theBugCheckers that are in the ENABLED_WARNINGS list.
-