diff --git a/rewrite.yml b/rewrite.yml index 7e69c90..fa836ac 100644 --- a/rewrite.yml +++ b/rewrite.yml @@ -84,3 +84,22 @@ recipeList: - org.openrewrite.staticanalysis.ReorderAnnotations - org.openrewrite.java.UseStaticImport: methodPattern: 'org.openrewrite..Assertions *(..)' +--- +type: specs.openrewrite.org/v1beta/recipe +name: CheckstyleAutoFixConfigured +displayName: Checkstyle Auto Fix Configured +description: | + Automatically applies OpenRewrite recipes to fix Checkstyle violations + based on the provided Checkstyle XML violation report. This recipe serves + as an entry point to apply all auto-fixable rules configured in the report. +tags: + - checkstyle + - autofix + - static-analysis + - java + - code-quality +recipeList: + - org.checkstyle.autofix.CheckstyleAutoFix: + violationReportPath: "target/checkstyle/checkstyle-report.xml" + configurationPath: "https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle-checks.xml" + propertiesPath: "config/checkstyle.properties" diff --git a/src/main/resources/META-INF/rewrite/recipes.yml b/src/main/resources/META-INF/rewrite/recipes.yml deleted file mode 100644 index eb794d6..0000000 --- a/src/main/resources/META-INF/rewrite/recipes.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -type: specs.openrewrite.org/v1beta/recipe -name: CheckstyleAutoFixConfigured -displayName: Checkstyle Auto Fix Configured -description: | - Automatically applies OpenRewrite recipes to fix Checkstyle violations - based on the provided Checkstyle XML violation report. This recipe serves - as an entry point to apply all auto-fixable rules configured in the report. -tags: - - checkstyle - - autofix - - static-analysis - - java - - code-quality -recipeList: - - org.checkstyle.autofix.CheckstyleAutoFix: - violationReportPath: "target/checkstyle/checkstyle-report.xml" - configurationPath: "https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle-checks.xml" - propertiesPath: "config/checkstyle.properties"