Find focus traps constructed without an Injector

Proprietary

Finds new FocusTrap(...) and new ConfigurableFocusTrap(...) calls without the trailing Injector argument, which CDK 22 made required. Prefer creating focus traps with FocusTrapFactory or ConfigurableFocusTrapFactory, which pass the injector themselves.

org.openrewrite.angular.cdk.FindFocusTrapWithoutInjector
mod run . --recipe=org.openrewrite.angular.cdk.FindFocusTrapWithoutInjector

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.