我正在寻找示例 rewrite.yml -文件以使用 org.openrewrite.java.OrderImports-plugin 来定义导入语句的自定义排序。
我搜索了所有文档和互联网 - 但没有成功 - 然而......;-)
给你:
type: specs.openrewrite.org/v1beta/recipe
name: org.myUser.MyRecipe
displayName: My custom recipe
description: Fix all the things.
recipeList:
- org.openrewrite.java.OrderImports
这是使用 Moderne 配方生成器的https://app.moderne.io/recipes/builder
然后使用 https://app.moderne.io/recipes/org.openrewrite.java.OrderImports