Find two argument canMatch guard calls
Recipe ID
org.openrewrite.angular.search.find-can-match-usageArtifact@openrewrite/recipes-angularFinds calls to a canMatch guard that pass only a route and its segments. Angular 22 made the currentSnapshot parameter of CanMatch and CanMatchFn required, so those calls no longer compile. Guards that declare fewer parameters keep working and are not reported.
Single recipeProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.angular.search.find-can-match-usageIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular