From ce89fe6973f57e09af0314d7d25b0055a3f7deea Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 16 Dec 2024 12:31:07 +0100 Subject: [PATCH] No need to duplicate unchanged recipes --- rewrite.yml | 57 ----------------------------------------------------- 1 file changed, 57 deletions(-) diff --git a/rewrite.yml b/rewrite.yml index 6fea47a5..d42cacd9 100644 --- a/rewrite.yml +++ b/rewrite.yml @@ -36,60 +36,3 @@ recipeList: - org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods #- org.openrewrite.staticanalysis.UnnecessaryThrows - org.openrewrite.staticanalysis.UseDiamondOperator ---- -type: specs.openrewrite.org/v1beta/recipe -name: org.openrewrite.recipes.JavaRecipeBestPractices -displayName: Java Recipe best practices -description: Best practices for Java recipe development. -preconditions: - - org.openrewrite.java.search.FindTypes: - fullyQualifiedTypeName: org.openrewrite.Recipe - checkAssignability: true -recipeList: - - org.openrewrite.java.recipes.BlankLinesAroundFieldsWithAnnotations - - org.openrewrite.java.recipes.ExecutionContextParameterName - - org.openrewrite.java.recipes.MissingOptionExample - - org.openrewrite.java.recipes.NoMutableStaticFieldsInRecipes - - org.openrewrite.java.recipes.RecipeEqualsAndHashCodeCallSuper - - org.openrewrite.java.recipes.UseTreeRandomId - - org.openrewrite.staticanalysis.NeedBraces - - org.openrewrite.staticanalysis.RemoveSystemOutPrintln - - org.openrewrite.java.RemoveAnnotation: - annotationPattern: '@org.openrewrite.NlsRewrite.DisplayName' - - org.openrewrite.java.RemoveAnnotation: - annotationPattern: '@org.openrewrite.NlsRewrite.Description' ---- -type: specs.openrewrite.org/v1beta/recipe -name: org.openrewrite.recipes.RecipeTestingBestPractices -displayName: Recipe testing best practices -description: Best practices for testing recipes. -preconditions: - - org.openrewrite.java.search.FindTypes: - fullyQualifiedTypeName: org.openrewrite.test.RewriteTest - checkAssignability: true -recipeList: - - org.openrewrite.java.recipes.RewriteTestClassesShouldNotBePublic - - org.openrewrite.java.recipes.SelectRecipeExamples - - org.openrewrite.java.recipes.SourceSpecTextBlockIndentation - - org.openrewrite.java.testing.cleanup.RemoveTestPrefix - - org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic - - org.openrewrite.staticanalysis.NeedBraces - - org.openrewrite.staticanalysis.RemoveSystemOutPrintln - - org.openrewrite.java.UseStaticImport: - methodPattern: 'org.openrewrite..Assertions *(..)' ---- -type: specs.openrewrite.org/v1beta/recipe -name: org.openrewrite.recipes.RecipeNullabilityBestPractices -displayName: Recipe nullability best practices -description: Use JSpecify nullable annotations; drop Nonnull annotations; use `NullMarked` on `package-info.java` instead. -recipeList: - - org.openrewrite.java.jspecify.MigrateFromOpenRewriteAnnotations - - org.openrewrite.java.RemoveAnnotation: - annotationPattern: '@org.jetbrains.annotations.NotNull' - - org.openrewrite.java.RemoveAnnotation: - annotationPattern: '@javax.annotation.Nonnull' - - org.openrewrite.java.RemoveAnnotation: - annotationPattern: '@jakarta.annotation.Nonnull' - - org.openrewrite.java.jspecify.MigrateToJspecify - - org.openrewrite.staticanalysis.AnnotateNullableMethods - - org.openrewrite.staticanalysis.NullableOnMethodReturnType