codegenomeproject
Search
MarketplaceModules
PackagesCLIMCP
Sign in
  1. Marketplace
  2. Picnic
  3. FileRules Refaster recipes

FileRules Refaster recipes

Apache 2.0

Refaster rules related to expressions dealing with files. Source.

tech.picnic.errorprone.refasterrules.FileRulesRecipes
mod run . --recipe=tech.picnic.errorprone.refasterrules.FileRulesRecipes

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.

Recipe
  1. Refaster template FileRules.PathOf
  2. Refaster template FileRules.PathOfVarargs
  3. Refaster template FileRules.PathIdentity
  4. Prefer Path#resolveSibling(Path) over more fragile or more verbose alternatives
  5. Prefer Path#resolveSibling(String) over more fragile or more verbose alternatives
  6. Refaster template FileRules.FilesReadStringWithCharset
  7. Refaster template FileRules.FilesReadString
  8. Prefer Files#createTempFile(String, String, FileAttribute[]) over less secure alternatives
  9. Prefer Files#createTempFile(Path, String, String, FileAttribute[]) over less secure alternatives
  10. Refaster template FileRules.PathToFileMkdirsOrFilesExists
  11. Refaster template FileRules.FileMkdirsOrFileExists
  12. Refaster template FileRules.FilesNewInputStreamPathOf
  13. Refaster template FileRules.FilesNewInputStreamFileToPath
  14. Refaster template FileRules.FilesNewOutputStreamPathOf
  15. Refaster template FileRules.FilesNewOutputStreamFileToPath
  16. Prefer Files#newBufferedReader(Path) over more verbose or contrived alternatives
  17. Refaster template FileRules.FilesNewBufferedReaderWithCharset
© Moderne, 2026
Recipe indexPrivacyTerms