From 98c03084f2192d79b89b862a94e4defe662c5cbb Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Tue, 23 Jan 2024 10:28:25 -0800 Subject: [PATCH] Remove bellwether from generated yaml Related to issue: https://github.com/openrewrite/rewrite-docs/issues/250 --- .../kotlin/org/openrewrite/RecipeDescriptorExtensions.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt b/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt index 8f7eae5..491a084 100755 --- a/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt +++ b/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt @@ -26,6 +26,11 @@ fun RecipeDescriptor.asYaml(): String { if (recipeList.isNotEmpty()) { s.appendLine("recipeList:") for (subRecipe in recipeList) { + // https://github.com/openrewrite/rewrite-docs/issues/250 + if (subRecipe.name.contains("Bellwether")) { + continue; + } + s.append(" - ${subRecipe.name}") if (subRecipe.options.isEmpty()) { s.appendLine()