errorprone:test-configuration
Full name:
io.github.jonasrutishauser.maven:errorprone-maven-plugin:1.1.0:test-configuration
Description:
No description.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
process-test-resources.
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<allDisabledChecksAsWarnings> |
boolean |
- |
Enables all Error Prone checks, checks that are disabled by default are enabled as warnings. Maps to -XepAllDisabledChecksAsWarnings.
This will be among the first arguments, so checks can then be disabled again on a case-by-case basis. Default: falseUser Property: errorprone.allDisabledChecksAsWarnings |
<allErrorsAsWarnings> |
boolean |
- |
Turns all Error Prone errors into warnings. Maps to -XepAllErrorsAsWarnings.
This will be among the first arguments, so checks can then be promoted back to error on a case-by-case basis. Default: falseUser Property: errorprone.allErrorsAsWarnings |
<allSuggestionsAsWarnings> |
boolean |
- |
Turn all Error Prone suggestions into warnings. Maps to -XepAllSuggestionsAsWarnings.
This will be among the first arguments, so checks can then be demoted back to suggestions on a case-by-case basis. Default: falseUser Property: errorprone.allSuggestionsAsWarnings |
<arguments> |
List<String> |
- |
Additional arguments passed to Error Prone. User Property: errorprone.arguments |
<checks> |
Map<String,CheckSeverity> |
- |
A map of check name to CheckSeverity, to configure which checks are enabled or disabled, and their severity.
Maps each entry to |
<compilingTestOnlyCode> |
boolean |
- |
Tells Error Prone that the compilation contains only test code. Maps to -XepCompilingTestOnlyCode.Default: true |
<disableAllChecks> |
boolean |
- |
Disable all Error Prone checks. Maps to -XepDisableAllChecks.
This will be the first argument, so checks can then be re-enabled on a case-by-case basis. Default: falseUser Property: errorprone.disableAllChecks |
<disableAllWarnings> |
boolean |
- |
Disables all Error Prone warnings. Maps to -XepDisableAllWarnings.
This will be among the first arguments, so checks can then be re-enabled on a case-by-case basis. Default: falseUser Property: errorprone.disableAllWarnings |
<disableWarningsInGeneratedCode> |
boolean |
- |
Disables warnings in classes annotated with @Generated. Maps to -XepDisableWarningsInGeneratedCode.Default: falseUser Property: errorprone.disableWarningsInGeneratedCode |
<enabled> |
boolean |
- |
Allows disabling Error Prone altogether.
Error Prone will still be in the annotation processor path, but Default: trueUser Property: errorprone.enabled |
<excludePaths> |
String |
- |
A regular expression pattern of file paths to exclude from Error Prone checking. Maps to -XepExcludedPaths.User Property: errorprone.excludePaths |
<ignoreSuppressionAnnotations> |
boolean |
- |
Ignores suppression annotations, such as @SuppressWarnings. Maps to -XepIgnoreSuppressionAnnotations.Default: falseUser Property: errorprone.ignoreSuppressionAnnotations |
<ignoreUnknownCheckNames> |
boolean |
- |
Tells Error Prone to ignore unknown check names in checks. Maps to -XepIgnoreUnknownCheckNames.Default: falseUser Property: errorprone.ignoreUnknownCheckNames |
<namespacedOptions> |
Map<...> |
- |
A map of namespaced check options to their value.
Use an explicit Maps each entry to |
<options> |
Map<String,String> |
- |
A map of check options to their value.
Use an explicit Maps each entry to |
<propertyName> |
String |
- |
The name of the project property which will be set to the generated compiler argument (the value will be of the form -Xplugin:ErrorProne <options>).Default: errorprone.compile.argument |
Parameter Details
<allDisabledChecksAsWarnings>
-XepAllDisabledChecksAsWarnings.
This will be among the first arguments, so checks can then be disabled again on a case-by-case basis.
- Type:
boolean - Required:
No - User Property:
errorprone.allDisabledChecksAsWarnings - Default:
false
<allErrorsAsWarnings>
-XepAllErrorsAsWarnings.
This will be among the first arguments, so checks can then be promoted back to error on a case-by-case basis.
- Type:
boolean - Required:
No - User Property:
errorprone.allErrorsAsWarnings - Default:
false
<allSuggestionsAsWarnings>
-XepAllSuggestionsAsWarnings.
This will be among the first arguments, so checks can then be demoted back to suggestions on a case-by-case basis.
- Type:
boolean - Required:
No - User Property:
errorprone.allSuggestionsAsWarnings - Default:
false
<arguments>
- Type:
java.util.List<java.lang.String> - Required:
No - User Property:
errorprone.arguments
<checks>
CheckSeverity, to configure which checks are enabled or disabled, and their severity.
Maps each entry to -Xep:<key>:<value>, or -Xep:<key> if the value is CheckSeverity.DEFAULT.
- Type:
java.util.Map<java.lang.String, io.github.jonasrutishauser.errorprone.maven.plugin.CheckSeverity> - Required:
No
<compilingTestOnlyCode>
-XepCompilingTestOnlyCode.- Type:
boolean - Required:
No - Default:
true
<disableAllChecks>
-XepDisableAllChecks.
This will be the first argument, so checks can then be re-enabled on a case-by-case basis.
- Type:
boolean - Required:
No - User Property:
errorprone.disableAllChecks - Default:
false
<disableAllWarnings>
-XepDisableAllWarnings.
This will be among the first arguments, so checks can then be re-enabled on a case-by-case basis.
- Type:
boolean - Required:
No - User Property:
errorprone.disableAllWarnings - Default:
false
<disableWarningsInGeneratedCode>
@Generated. Maps to -XepDisableWarningsInGeneratedCode.- Type:
boolean - Required:
No - User Property:
errorprone.disableWarningsInGeneratedCode - Default:
false
<enabled>
Error Prone will still be in the annotation processor path, but -Xplugin:ErrorProne won't be passed as a compiler argument.
- Type:
boolean - Required:
No - User Property:
errorprone.enabled - Default:
true
<excludePaths>
-XepExcludedPaths.- Type:
java.lang.String - Required:
No - User Property:
errorprone.excludePaths
<ignoreSuppressionAnnotations>
@SuppressWarnings. Maps to -XepIgnoreSuppressionAnnotations.- Type:
boolean - Required:
No - User Property:
errorprone.ignoreSuppressionAnnotations - Default:
false
<ignoreUnknownCheckNames>
checks. Maps to -XepIgnoreUnknownCheckNames.- Type:
boolean - Required:
No - User Property:
errorprone.ignoreUnknownCheckNames - Default:
false
<namespacedOptions>
Use an explicit "true" value for a boolean option.
Maps each entry to -XepOpt:<namespace>:<key>=<value>.
- Type:
java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>> - Required:
No
<options>
Use an explicit "true" value for a boolean option.
Maps each entry to -XepOpt:<key>=<value>.
- Type:
java.util.Map<java.lang.String, java.lang.String> - Required:
No
<propertyName>
project property which will be set to the generated compiler argument (the value will be of the form -Xplugin:ErrorProne <options>).- Type:
java.lang.String - Required:
No - Default:
errorprone.compile.argument
