Find WebClient / RestTemplate / ResponseEntity smells
ProprietaryHTTP-client and response-shape patterns: RestTemplate allocations (maintenance mode — use WebClient / RestClient), WebClient.create() without the builder (use WebClient.builder().baseUrl(...)), and ResponseEntity(body, HttpStatus.OK) (use the ok(body) factory).
org. openrewrite. kotlin. spring. FindWebClientRestTemplateSmells$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindWebClientRestTemplateSmells$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.