From f989a4d60b0a492705c2bebfabc922bc800a5786 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Tue, 12 Mar 2024 12:32:08 +0100 Subject: [PATCH] Apply all common static analysis recipes to tests --- src/main/resources/META-INF/rewrite/openrewrite.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/META-INF/rewrite/openrewrite.yml b/src/main/resources/META-INF/rewrite/openrewrite.yml index 483cf1f..29d4d62 100644 --- a/src/main/resources/META-INF/rewrite/openrewrite.yml +++ b/src/main/resources/META-INF/rewrite/openrewrite.yml @@ -36,8 +36,11 @@ recipeList: - org.openrewrite.java.recipes.MissingOptionExample - org.openrewrite.java.recipes.RecipeEqualsAndHashCodeCallSuper - org.openrewrite.java.recipes.UseTreeRandomId + - org.openrewrite.staticanalysis.InlineVariable - org.openrewrite.staticanalysis.MissingOverrideAnnotation + - org.openrewrite.staticanalysis.NeedBraces - org.openrewrite.staticanalysis.RemoveSystemOutPrintln + - org.openrewrite.staticanalysis.UseDiamondOperator - org.openrewrite.recipes.RecipeNullabilityBestPractices --- type: specs.openrewrite.org/v1beta/recipe @@ -55,6 +58,7 @@ recipeList: - org.openrewrite.java.recipes.SourceSpecTextBlockIndentation - org.openrewrite.java.testing.cleanup.RemoveTestPrefix - org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic + - org.openrewrite.staticanalysis.CommonStaticAnalysis - org.openrewrite.staticanalysis.MissingOverrideAnnotation - org.openrewrite.staticanalysis.RemoveSystemOutPrintln - org.openrewrite.recipes.RecipeNullabilityBestPractices