From 02f616be81b7cdb4c11cc2f235e1663a8828ea98 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 7 Jun 2023 09:45:09 +0200 Subject: [PATCH] Bring back SimplifyBoolean* and UnnecessaryParantheses (and refine guide) --- rewrite.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/rewrite.yml b/rewrite.yml index 23f9575c404..f6969e92426 100644 --- a/rewrite.yml +++ b/rewrite.yml @@ -2,9 +2,17 @@ type: specs.openrewrite.org/v1beta/recipe name: org.jabref.config.rewrite.cleanup recipeList: - # generated by - # find . -type f -name "*.java" -exec basename {} .java \; | awk '{print " - org.openrewrite.staticanalysis." $1}' | grep -v "Visitor" | grep -v "package-info" - # in rewrites source folder /rewrite-java/src/main/java/org/openrewrite/java/cleanup + # Rules available in the "old" namespace + - org.openrewrite.java.cleanup.SimplifyBooleanExpression + - org.openrewrite.java.cleanup.SimplifyBooleanReturn + - org.openrewrite.java.cleanup.UnnecessaryParentheses + + # generated by extracting class names out of https://github.com/openrewrite/rewrite-static-analysis + # + # 1. git clone https://github.com/openrewrite/rewrite-static-analysis.git + # 2. cd rewrite-static-analysis/src/main/java/org/openrewrite/staticanalysis + # 3. find . -type f -name "*.java" -exec basename {} .java \; | awk '{print " - org.openrewrite.staticanalysis." $1}' | grep -v "Visitor" | grep -v "package-info" + # # Then, following to are removed: # Sometimes fails to produce correct results # - org.openrewrite.staticanalysis.FinalizePrivateFields