Replace RecipeSpec.afterTypeValidationOptions(TypeValidation)
MSALReplace the deprecated RecipeSpec.afterTypeValidationOptions(TypeValidation) with recipeQualityValidation(RecipeQualityValidation.builder().types(..).build()). A test method's recipeQualityValidation replaces the one its class's defaults set, so a call in a test method is left alone when a defaults it inherits may set one. Tests in org.openrewrite.test exercise the deprecated option itself and are left alone.
org. openrewrite. java. recipes. UseRecipeQualityValidationmod run . --recipe= org. openrewrite. java. recipes. UseRecipeQualityValidationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.