-
Notifications
You must be signed in to change notification settings - Fork 503
Update OpenRewrite #2781 #2793
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
Update OpenRewrite #2781 #2793
Conversation
b70df49 to
8f3cad9
Compare
Signed-off-by: Vincent Potucek <vpotucek@me.com>
8f3cad9 to
d1f7e2e
Compare
Pankraz76
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ct.
| - name: Gradle setup 🐘 | ||
| uses: gradle/actions/setup-gradle@v5 | ||
| - name: spotlessCheck | ||
| - name: Spotless ✨ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this alignment of naming and convention something we want to consider, please?
| @@ -3,11 +3,6 @@ type: specs.openrewrite.org/v1beta/recipe | |||
| name: com.diffplug.spotless.openrewrite.SanityCheck | |||
| displayName: Apply all Java & Gradle best practices | |||
| description: Comprehensive code quality recipe combining modernization, security, and best practices. | |||
| tags: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just c&p from checkstyle approach. Imho this is not mandatory and kind of takes away the focus.
| @@ -64,5 +58,4 @@ recipeList: | |||
| - tech.picnic.errorprone.refasterrules.StreamRulesRecipes | |||
| - tech.picnic.errorprone.refasterrules.StringRulesRecipes | |||
| - tech.picnic.errorprone.refasterrules.TimeRulesRecipes | |||
| # - org.openrewrite.java.migrate.lang.FindVirtualThreadOpportunities # don't want to use: https://github.com/diffplug/spotless/pull/2684#discussion_r2433831887 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
kind of takes away the focus.
| apply plugin: 'org.openrewrite.rewrite' | ||
| rewrite { | ||
| activeRecipe('com.diffplug.spotless.openrewrite.SanityCheck') | ||
| configFile = project.getRootProject().file("${rootDir}/gradle/rewrite.yml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also follow project convent, thus move away from root not to bother around.
same here.
kind of takes away the focus.
|
needs java 21 as well: |
Please DO NOT FORCE PUSH. Don't worry about messy history, it's easier to do code review if we can tell what happened after the review, and force pushing breaks that.
Please make sure that your PR allows edits from maintainers. Sometimes it's faster for us to just fix something than it is to describe how to fix it.
After creating the PR, please add a commit that adds a bullet-point under the
[Unreleased]section of CHANGES.md, plugin-gradle/CHANGES.md, and plugin-maven/CHANGES.md which includes:If your change only affects a build plugin, and not the lib, then you only need to update the
plugin-foo/CHANGES.mdfor that plugin.If your change affects lib in an end-user-visible way (fixing a bug, updating a version) then you need to update
CHANGES.mdfor both the lib and all build plugins. Users of a build plugin shouldn't have to refer to lib to see changes that affect them.This makes it easier for the maintainers to quickly release your changes :)