GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — [rewrite] apply `JavaLangAPIs` #2804 by Pankraz76 · Pull Request #2810 · diffplug/spotless
[rewrite] apply
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| # BUILDCACHE_USER | ||
| # BUILDCACHE_PASS | ||
| # - rw access to buildcache.diffplug.com | ||
|
|
||
|
||
| name: CI 🏭 | ||
| on: | ||
| pull_request: | ||
| push: | ||
|
|
@@ -13,7 +13,7 @@ concurrency: | |
| cancel-in-progress: true | ||
| jobs: | ||
| sanity-check: | ||
| name: SanityCheck | ||
| name: Sanity Check 🦢 | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| buildcacheuser: ${{ secrets.BUILDCACHE_USER }} | ||
|
|
@@ -29,9 +29,9 @@ jobs: | |
| java-version: 21 | ||
| - name: gradle caching | ||
| uses: gradle/actions/setup-gradle@v5 | ||
| - name: spotlessCheck | ||
| - name: Spotless ✨ | ||
| run: ./gradlew spotlessCheck | ||
| - name: rewriteDryRun | ||
| - name: Rewrite ♻️ | ||
| run: ./gradlew rewriteDryRun | ||
| - name: assemble testClasses | ||
| run: ./gradlew assemble testClasses | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,8 +21,8 @@ rewrite { | |
| failOnDryRunResults = true | ||
| } | ||
| dependencies { | ||
| rewrite('org.openrewrite.recipe:rewrite-migrate-java:3.22.0') | ||
|
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. sort
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions |
||
| rewrite('org.openrewrite.recipe:rewrite-java-security:3.22.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-migrate-java: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') | ||
|
|
||
| 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: | ||
|
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. no need for this.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions |
||
| - java | ||
| - gradle | ||
| - static-analysis | ||
| - cleanup | ||
| recipeList: | ||
| - org.openrewrite.gradle.EnableGradleBuildCache | ||
| - org.openrewrite.gradle.EnableGradleParallelExecution | ||
|
|
@@ -18,6 +13,7 @@ recipeList: | |
| - org.openrewrite.java.format.RemoveTrailingWhitespace | ||
| - org.openrewrite.java.migrate.UpgradeToJava17 | ||
| - org.openrewrite.java.migrate.lang.StringRulesRecipes | ||
| - org.openrewrite.java.migrate.util.JavaLangAPIs | ||
|
||
| - org.openrewrite.java.migrate.util.JavaUtilAPIs | ||
| - org.openrewrite.java.migrate.util.MigrateInflaterDeflaterToClose | ||
| - org.openrewrite.java.migrate.util.ReplaceStreamCollectWithToList | ||
|
|
@@ -38,7 +34,6 @@ recipeList: | |
| - org.openrewrite.staticanalysis.RemoveUnusedLocalVariables | ||
| - org.openrewrite.staticanalysis.RemoveUnusedPrivateFields | ||
| - org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods | ||
| - org.openrewrite.staticanalysis.ReplaceApacheCommonsLang3ValidateNotNullWithObjectsRequireNonNull | ||
|
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. this was "just" to see. its very specific, imho should go the simple way.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions |
||
| - org.openrewrite.staticanalysis.SimplifyTernaryRecipes | ||
| - org.openrewrite.staticanalysis.URLEqualsHashCodeRecipes | ||
| - org.openrewrite.staticanalysis.UnnecessaryCloseInTryWithResources | ||
|
|
@@ -63,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 | ||
|
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. this was "just" to see. its very specific, imho should go the simple way.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions |
||
| --- | ||