Find non-injected clock / I/O calls (testability)
ProprietarySystem.currentTimeMillis() / System.nanoTime() / LocalDateTime.now() and friends read the system clock implicitly. Each flagged call site is a candidate to receive a Clock (or the JDK java.time.Clock) so tests can advance time deterministically. Also flags BufferedReader.lines() — usually a lineSequence/useLines migration.
org. openrewrite. kotlin. interop. FindClockAndTestabilityFriction$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindClockAndTestabilityFriction$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.