Find source files with imports

Apache 2.0

Locates source files that have imports matching the given type pattern, regardless of whether that import is used in the code.

org.openrewrite.java.search.FindImports

Optional

A type pattern that is used to find matching field uses.

matchInheritedBoolean

When enabled, find types that inherit from a deprecated type.

mod run . --recipe=org.openrewrite.java.search.FindImports

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