-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I'm trying to enable error-prone with the refactor rules in our projects.
The problem that I facing is that I can't disable rules like PreconditionsRules
https://error-prone.picnic.tech/refasterrules/PreconditionsRules/#checkargument
- [ No] I have verified that the issue is reproducible against the latest version
of the project.
I was not able to use 2.36.0, so I use 2.35.1 due to other issues. - [yes ] I have searched through existing issues to verify that this issue is not
already known.
I have tried to find information about how to enable/disable refactor rules and I can not get name pattern working.
Minimal Reproducible Example
<properties>
<error-prone.version>2.35.1</error-prone.version>
<error-prone-support.version>0.20.0</error-prone-support.version>
<error-prone.configuration-args>-Xep:AmbiguousJsonCreator:ERROR -Xep:AssertJIsNull:ERROR -Xep:AutowiredConstructor:ERROR -Xep:CanonicalAnnotationSyntax:ERROR -Xep:CollectorMutability:ERROR -Xep:DirectReturn:ERROR -Xep:EmptyMethod:ERROR -Xep:ExplicitEnumOrdering:ERROR -Xep:FormatStringConcatenation:ERROR -Xep:ImmutablesSortedSetComparator:ERROR -Xep:IsInstanceLambdaUsage:ERROR -Xep:MockitoMockClassReference:ERROR -Xep:MockitoStubbing:ERROR -Xep:NestedOptionals:ERROR -Xep:PrimitiveComparison:ERROR -Xep:RedundantStringConversion:ERROR -Xep:Slf4jLogStatement:ERROR -Xep:StringJoin:ERROR -Xep:TimeZoneUsage:ERROR -Xep:JUnitClassModifiers:OFF -Xep:JUnitMethodDeclaration:OFF -Xep:JUnitValueSource:OFF -Xep:LexicographicalAnnotationListing:OFF -Xep:StaticImport:OFF -Xep:ArrayToString:OFF -Xep:FormatString:OFF</error-prone.configuration-args>
<error-prone.refactor-args>-XepPatchChecks:Refaster -XepPatchLocation:IN_PLACE -XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$).*</error-prone.refactor-args>
</properties>
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working