-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Add rewrite support for gradle.GradleBestPractices
#10731
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
Conversation
|
Thanks for your pull request! This pull request does not follow the contribution rules. Could you have a look? ❌ All commit messages should start with a JIRA issue key matching pattern › This message was automatically generated. |
|
Is this any good? Kindly request some feedback. To pitch this, as there is no issue or discussion section for me enabled to post, im providing the issue the PoC in one thread. Please excuse this. Thanks for considering. |
errorprone.refasterrulesrewrite support for tech.picnic.errorprone.refasterrules.FileRulesRecipes
|
BUILD SUCCESSFUL |
...c/test/java/org/hibernate/orm/test/annotations/onetoone/OneToOneJoinTableUniquenessTest.java
Outdated
Show resolved
Hide resolved
rewrite support for tech.picnic.errorprone.refasterrules.FileRulesRecipesrewrite support for org.openrewrite.gradle.GradleBestPractices
rewrite support for org.openrewrite.gradle.GradleBestPracticesrewrite support for gradle.GradleBestPractices
...-community-dialects/src/test/java/org/hibernate/community/dialect/AltibaseFunctionsTest.java
Show resolved
Hide resolved
|
We're not interested in this at this time. I'm going to close this. |
Add
rewritesupport forgradle.GradleBestPracticesI’d like to propose integrating Google’s Error Prone and its Picnic extension (demonstrated in Automating Away Bugs with Error Prone | PlatformCon 2023) to enable automated bug fixes via
rewriterules. This would complement Checkstyle’s static analysis capabilities by addressing semantic bugs rather than stylistic issues.Motivation
Error Prone’s
refaster/rewriterules can automatically:String.equals()misuse)Real-world adoptions show tangible benefits:
Rewritecovering S1144: Unused "private" methods should be removed checkstyle/checkstyle#17545rewritesupport forerrorprone.refasterrulespmd/pmd#5956Rewrite & PMDcovering S1144: Unused "private" methods should be removed opensearch-project/OpenSearch#18791rewritesupport forerrorprone.refasterrulesdiffplug/spotless#2576rewritesupport forerrorprone.refasterrulesapache/kafka#20219Proposal
errorprone.refasterrules-based rewritesDiscussion Points
Next Steps
I’m happy to:
relates to:
editorconfig.orgcheckstyle/checkstyle#16543Hi
Is this any good?
Might consider these changes suggested by
error.prone.Thanks.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.