What problem are you trying to solve?
Right now we skip all refaster rules using any form of Refaster.anyOf(...), whereas we could potentially cover return Refaster.anyOf(...) with less effort as compared to supporting Refaster.anyOf(...) anywhere in template for matches.
This will allow us to cover additional rules defined in PicnicSupermarket/error-prone-support, as discovered in #5 (comment).
Describe the solution you'd like
We already support multiple @BeforeTemplate annotated methods. We should expand support for multiple before statements to cover return Refaster.anyOf as seen here.
@BeforeTemplate
boolean before(Map<K, V> map) {
return Refaster.anyOf(map.keySet(), map.values(), map.entrySet()).isEmpty();
}
Refaster.anyOf(...) used anywhere else but in the return, repeatedly, or with preceding statements is left out of scope for now.
Have you considered any alternatives or workarounds?
Not yet.
Additional context
What problem are you trying to solve?
Right now we skip all refaster rules using any form of
Refaster.anyOf(...), whereas we could potentially coverreturn Refaster.anyOf(...)with less effort as compared to supportingRefaster.anyOf(...)anywhere in template for matches.This will allow us to cover additional rules defined in PicnicSupermarket/error-prone-support, as discovered in #5 (comment).
Describe the solution you'd like
We already support multiple
@BeforeTemplateannotated methods. We should expand support for multiple before statements to coverreturn Refaster.anyOfas seen here.Refaster.anyOf(...)used anywhere else but in the return, repeatedly, or with preceding statements is left out of scope for now.Have you considered any alternatives or workarounds?
Not yet.
Additional context