Find Spring Web / WebFlux smells
ProprietaryController endpoints worth a closer look: ResponseEntity<T> returns that always emit 200, verb-less @RequestMapping, @RequestMapping(method = [...]) candidates for shortcut annotations, @PathVariable parameters without explicit names, primitive @RequestBody shapes, POST endpoints missing @ResponseStatus(CREATED), and reactive block() calls that stall the event loop.
org. openrewrite. kotlin. spring. FindSpringWebSmells$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindSpringWebSmells$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.
- Find
@RestControllermethods returningResponseEntity<T> - Find
@RequestMapping(...)without an HTTP method - Find
@RequestMapping(method = [RequestMethod.GET])candidates for@GetMapping - Find
@PathVariableparameters without an explicit name - Find
@RequestBodyon primitive parameters - Find
@PostMappingmethods missing@ResponseStatus(HttpStatus.CREATED) - Find
Mono.block/Flux.blockFirst/Flux.blockLastcalls - Find
Mono.block()calls in non-test code