Find filesystem-operation seeds

Proprietary

Individual filesystem reads, writes, deletes, and copies via java.io.File and java.nio.file.Files. Each match is a position where the program crosses the filesystem trust boundary.

org.openrewrite.kotlin.search.FindFileSystemSeeds$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.search.FindFileSystemSeeds$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.

  1. Find File.writeText(...) calls
  2. Find File.readText() calls
  3. Find File.readBytes() calls
  4. Find Files.writeString(...) calls
  5. Find Files.newBufferedWriter(...) calls
  6. Find Files.delete(...) / Files.deleteIfExists(...) calls
  7. Find Files.copy(...) calls