-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| apply plugin: 'org.openrewrite.rewrite' | ||
| rewrite { | ||
| activeRecipe('com.diffplug.spotless.openrewrite.SanityCheck') | ||
| configFile = project.getRootProject().file("${rootDir}/gradle/rewrite.yml") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| exclusions.addAll( | ||
| '**.dirty.java', | ||
| '**FormatterProperties.java', | ||
|
|
@@ -21,9 +22,9 @@ rewrite { | |
| failOnDryRunResults = true | ||
| } | ||
| dependencies { | ||
| rewrite('org.openrewrite.recipe:rewrite-migrate-java:3.22.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-java-security:3.22.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-rewrite:0.16.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-static-analysis:2.22.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-third-party:0.31.2') | ||
| rewrite('org.openrewrite.recipe:rewrite-migrate-java:3.24.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-java-security:3.24.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-rewrite:0.17.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-static-analysis:2.24.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-third-party:0.32.1') | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| - java | ||
| - gradle | ||
| - static-analysis | ||
| - cleanup | ||
| recipeList: | ||
| - org.openrewrite.gradle.EnableGradleBuildCache | ||
| - org.openrewrite.gradle.EnableGradleParallelExecution | ||
|
|
@@ -39,7 +34,6 @@ recipeList: | |
| - org.openrewrite.staticanalysis.RemoveUnusedLocalVariables | ||
| - org.openrewrite.staticanalysis.RemoveUnusedPrivateFields | ||
| - org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods | ||
| - org.openrewrite.staticanalysis.ReplaceApacheCommonsLang3ValidateNotNullWithObjectsRequireNonNull | ||
| - org.openrewrite.staticanalysis.SimplifyTernaryRecipes | ||
| - org.openrewrite.staticanalysis.URLEqualsHashCodeRecipes | ||
| - org.openrewrite.staticanalysis.UnnecessaryCloseInTryWithResources | ||
|
|
@@ -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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here. kind of takes away the focus. |
||
| --- | ||
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?