Class ErrorProneOptions
java.lang.Object
com.google.errorprone.ErrorProneOptions
Processes command-line options specific to error-prone.
Documentation for the available flags are available at https://errorprone.infoflags
- Author:
- eaftan@google.com (Eddie Aftandilian)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Severity levels for an error-prone check that define how the check results should be presented. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ErrorProneOptions
empty()
getFlags()
com.google.common.collect.ImmutableList
<String> com.google.common.collect.ImmutableMap
<String, ErrorProneOptions.Severity> boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static int
isSupportedOption
(String option) boolean
com.google.errorprone.ErrorProneOptions.PatchingOptions
static ErrorProneOptions
processArgs
(Iterable<String> args) Given a list of command-line arguments, produce the correspondingErrorProneOptions
instance.static ErrorProneOptions
processArgs
(String[] args) Given a list of command-line arguments, produce the correspondingErrorProneOptions
instance.
-
Method Details
-
isSupportedOption
-
isEnableAllChecksAsWarnings
public boolean isEnableAllChecksAsWarnings() -
isDisableAllChecks
public boolean isDisableAllChecks() -
getRemainingArgs
-
getSeverityMap
-
ignoreUnknownChecks
public boolean ignoreUnknownChecks() -
disableWarningsInGeneratedCode
public boolean disableWarningsInGeneratedCode() -
isDisableAllWarnings
public boolean isDisableAllWarnings() -
isDropErrorsToWarnings
public boolean isDropErrorsToWarnings() -
isSuggestionsAsWarnings
public boolean isSuggestionsAsWarnings() -
isTestOnlyTarget
public boolean isTestOnlyTarget() -
isPubliclyVisibleTarget
public boolean isPubliclyVisibleTarget() -
isIgnoreSuppressionAnnotations
public boolean isIgnoreSuppressionAnnotations() -
ignoreLargeCodeGenerators
public boolean ignoreLargeCodeGenerators() -
getFlags
-
patchingOptions
public com.google.errorprone.ErrorProneOptions.PatchingOptions patchingOptions() -
getExcludedPattern
-
empty
-
processArgs
Given a list of command-line arguments, produce the correspondingErrorProneOptions
instance.- Parameters:
args
- command-line arguments- Returns:
- an
ErrorProneOptions
instance encapsulating the given arguments - Throws:
InvalidCommandLineOptionException
- if an error-prone option is invalid
-
processArgs
Given a list of command-line arguments, produce the correspondingErrorProneOptions
instance.- Parameters:
args
- command-line arguments- Returns:
- an
ErrorProneOptions
instance encapsulating the given arguments - Throws:
InvalidCommandLineOptionException
- if an error-prone option is invalid
-