You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Murtuza24 ; thanks for the detailed report, and using the Moderne CLI. Sorry to hear to output does not match what you had hoped for; that's down to OpenRewrite not yet supporting Lombok annotations. You can follow along to efforts there in this issue, but it's not an easy case to fix for us, due to the way Lombok is implemented
What we can do however, and would fit in with our principle to "do no harm" is to make the recipe not rename any variables in the presence of lombok annotations. We already have such exceptions elsewhere I believe, and I imagine it would be fairly easy to add here as well.
Would you be open to start a draft pull request for this that adds tests that assert we don't make any changes when lombok annotations are present? That'd be the quickest way to get started on a fix. Such a test would be similar to this one here:
What version of OpenRewrite are you using?
I am using
rewrite-static-analysis_ v1.0.8
How are you running OpenRewrite?
I am using the Moderne CLI v 1.1.0.
mod build .
mod run . --recipe=CommonStaticAnalysis
mod apply . --last-recipe-run
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
What did you see instead?
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
The text was updated successfully, but these errors were encountered: