diff --git a/rewrite.yml b/config/rewrite.yml similarity index 86% rename from rewrite.yml rename to config/rewrite.yml index 8139c1e90626..fe8f13a616dd 100644 --- a/rewrite.yml +++ b/config/rewrite.yml @@ -4,11 +4,14 @@ name: org.checkstyle.AllAutoFixes displayName: Auto Fixes description: List of auto fixes from different providers. recipeList: - - org.checkstyle.autofix.CheckstyleAutoFix: - violationReportPath: "target/cs_errors.xml" - configurationPath: "config/checkstyle-checks.xml" - propertiesPath: "config/openrewrite-recipes-checkstyle.properties" +# - org.checkstyle.autofix.CheckstyleAutoFix: +# violationReportPath: "target/cs_errors.xml" +# configurationPath: "config/checkstyle-checks.xml" +# propertiesPath: "config/openrewrite-recipes-checkstyle.properties" - org.openrewrite.java.RemoveUnusedImports + - org.openrewrite.staticanalysis.NoDoubleBraceInitialization + - org.openrewrite.java.testing.junit5.CleanupAssertions + # - org.openrewrite.java.testing.junit.JupiterBestPractices - org.openrewrite.java.format.NormalizeFormat - org.openrewrite.java.format.NormalizeLineBreaks - org.openrewrite.java.format.RemoveTrailingWhitespace diff --git a/pom.xml b/pom.xml index 91ad63779c9f..5e2e751d0838 100644 --- a/pom.xml +++ b/pom.xml @@ -610,8 +610,10 @@ 3.1.0 + + config/spotless/import.order @@ -624,6 +626,64 @@ + + org.openrewrite.maven + rewrite-maven-plugin + 6.26.0 + + config/rewrite.yml + true + true + + org.checkstyle.AllAutoFixes + + + **.ci-temp** + **CheckstyleAntTask.java + **DesignForExtensionCheck.java + **HexLiteralCaseCheck.java + **NonEmptyAtclauseDescriptionCheckTest.java + **resources-noncompilable** + **src/it/resources** + **src/test/resources** + **xdocs-examples** + + + **/*.groovy + **/*.xml + **/*.yml + **/resources-noncompilable/** + **/resources/** + + + + + com.puppycrawl.tools + checkstyle-openrewrite-recipes + ${checkstyle.openrewrite.version} + + + org.openrewrite.recipe + rewrite-migrate-java + 3.22.0 + + + org.openrewrite.recipe + rewrite-static-analysis + 2.24.0 + + + org.openrewrite.recipe + rewrite-rewrite + 0.17.0 + + + org.openrewrite.recipe + rewrite-testing-frameworks + 3.24.0 + + + org.apache.maven.plugins maven-pmd-plugin @@ -784,6 +844,10 @@ com.diffplug.spotless spotless-maven-plugin + + org.openrewrite.maven + rewrite-maven-plugin + org.codehaus.plexus plexus-component-metadata @@ -1913,6 +1977,7 @@ openrewrite-recipes-checkstyle.properties org.eclipse.jdt.core.prefs projects-to-test/** + rewrite.yml signatures-test.txt signatures.txt spotless/import.order @@ -5446,54 +5511,9 @@ checkstyle-autofix - org.openrewrite.maven rewrite-maven-plugin - 6.26.0 - - true - true - - org.checkstyle.AllAutoFixes - - - **.ci-temp** - **/resources-noncompilable/** - **src/it/resources** - **src/test/resources** - **xdocs-examples** - - - **/*.xml - **/*.yml - **/*.groovy - **/resources/** - **/resources-noncompilable/** - - - - - com.puppycrawl.tools - checkstyle-openrewrite-recipes - ${checkstyle.openrewrite.version} - - - org.openrewrite.recipe - rewrite-migrate-java - 3.22.0 - - - org.openrewrite.recipe - rewrite-static-analysis - 2.24.0 - - - org.openrewrite.recipe - rewrite-rewrite - 0.17.0 - -