-
Notifications
You must be signed in to change notification settings - Fork 74
Java recipe to reorder annotations #543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Marking as good-first-issue as I believe this should be quite easy for beginners to implement. Whoever does it, please come up with the description of the interface of the recipe (what arguments) first, so that we can pick whatever makes the most sense. |
I can give t a try. Please assign it to me. |
I guess this work would need working in modules rewrite-java and rewrite-java-test, and so I can comment our other modules in IDE.properties. |
@mghildiy we tend to assign issues to folks the moment they open up a draft pull request with tests; that way issues are only assigned when there's work in progress. On our side we also have @steve-aom-elliott looking to get started with recipe development, and figured this could be a good one to start with. I'd implement this as a recipe with a |
Hi Tim, I am in process of configuring my system for recipe writing as explained here. So yes, I am working on this task. But if there is another person who can immediately start working on it, I am fine with that. I can pick up another beginner task then. |
Appreciate the offer to help @mghildiy ; perhaps best to avoid conflicts then if you start with any of the other good first issues. |
In case you plan to lexicographically order all annotations: this Error Prone code can serve as inspiration. Note that it sorts declaration annotations before type annotations; see also PicnicSupermarket/error-prone-support#182. |
What problem are you trying to solve?
I'd like to be able to tackle inconsistent order of frequently used annotations in the code.
e.g.
vs.
in our own code, etc. There are other combinations.
Describe the solution you'd like
Maybe a recipe to instil some deterministic order (alphabetic) or maybe some smart way of passing priorities/orders - e.g.
@Test
should always come first, etc.The text was updated successfully, but these errors were encountered: