Skip to content

Commit

Permalink
Suppress Maven and Gradle snippet for C# & Python
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Sep 11, 2024
1 parent fa7e12e commit e99fa3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1158,8 +1158,9 @@ class RecipeMarkdownGenerator : Runnable {
writeln("## Usage")
newLine()

val suppressMaven = recipeDescriptor.name.contains(".gradle.")
val suppressGradle = recipeDescriptor.name.contains(".maven.")
val suppressJava = recipeDescriptor.name.contains(".csharp.") || recipeDescriptor.name.contains(".python.")
val suppressMaven = suppressJava || recipeDescriptor.name.contains(".gradle.")
val suppressGradle = suppressJava || recipeDescriptor.name.contains(".maven.")
val requiresConfiguration = recipeDescriptor.options.any { it.isRequired }
val requiresDependency = !origin.isFromCoreLibrary()

Expand Down

0 comments on commit e99fa3c

Please sign in to comment.