Skip to content
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

💡 Add "@Generated" annotation to generated code #96

Closed
mbruggmann opened this issue Jul 9, 2024 · 1 comment
Closed

💡 Add "@Generated" annotation to generated code #96

mbruggmann opened this issue Jul 9, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mbruggmann
Copy link
Contributor

mbruggmann commented Jul 9, 2024

What problem are you trying to solve?

The classes generated by the rewrite-templating annotation processor fail some of our errorprone rules.

Describe the solution you'd like

Add a @javax.annotation.processing.Generated("org.openrewrite.java.template.processor.RefasterTemplateProcessor") annotation to classes produced by the annotation processor.
This will make it so errorprone ignores that code if the -XepDisableWarningsInGeneratedCode argument is passed.

Have you considered any alternatives or workarounds?

Open for other suggestions!

Are you interested in contributing this feature to OpenRewrite

Possibly, but I'm not familiar with the codebase.

@timtebeek
Copy link
Contributor

Fixed in #97 Thanks a lot! We might want to keep an eye on if that dependency is available to Java 9+ projects, but we can tackle that if it comes to it.

@github-project-automation github-project-automation bot moved this from Backlog to Done in OpenRewrite Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants