Skip to content

Conversation

@Pankraz76
Copy link
Contributor

@Pankraz76 Pankraz76 commented Jan 10, 2026

[rewrite] apply JavaLangAPIs #2804

as kindly requested: @Goooler

failOnDryRunResults = true
}
dependencies {
rewrite('org.openrewrite.recipe:rewrite-migrate-java:3.22.0')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sort

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:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for this.

- org.openrewrite.staticanalysis.RemoveUnusedLocalVariables
- org.openrewrite.staticanalysis.RemoveUnusedPrivateFields
- org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods
- org.openrewrite.staticanalysis.ReplaceApacheCommonsLang3ValidateNotNullWithObjectsRequireNonNull
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

- 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
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

@Pankraz76 Pankraz76 marked this pull request as ready for review January 10, 2026 12:45
# BUILDCACHE_USER
# BUILDCACHE_PASS
# - rw access to buildcache.diffplug.com

Copy link
Contributor Author

@Pankraz76 Pankraz76 Jan 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would help to avoid a lot of noice.

of course the icons are open to debate, im sure you request to remove for the same reason :)

  • image
  • Image

Copy link
Contributor Author

@Pankraz76 Pankraz76 Jan 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nedtwigg let me know if i should adjust or remove the icons. Thanks

@romani see how nice it can be. nice and shiny what check and spot is all about.

🕊️

@Goooler Goooler merged commit 284bb6e into diffplug:main Jan 10, 2026
20 checks passed
@Pankraz76
Copy link
Contributor Author

ty.

- org.openrewrite.java.format.RemoveTrailingWhitespace
- org.openrewrite.java.migrate.UpgradeToJava17
- org.openrewrite.java.migrate.lang.StringRulesRecipes
- org.openrewrite.java.migrate.util.JavaLangAPIs
Copy link
Contributor Author

@Pankraz76 Pankraz76 Jan 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thats actually wrong how could this pass ci..

Recipe validation error in com.diffplug.spotless.openrewrite.SanityCheck for property com.diffplug.spotless.openrewrite.SanityCheck.recipeList[13] (in file:/home/runner/work/spotless/spotless/rewrite.yml): recipe 'org.openrewrite.java.migrate.util.JavaLangAPIs' does not exist.

fixed in:

Pankraz76 pushed a commit to Pankraz76/spotless that referenced this pull request Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants