FileRules Refaster recipes
Apache 2.0Refaster rules related to expressions dealing with files. Source.
tech. picnic. errorprone. refasterrules. FileRulesRecipesmod run . --recipe= tech. picnic. errorprone. refasterrules. FileRulesRecipesInstall 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.
- Refaster template
FileRules.PathOf - Refaster template
FileRules.PathOfVarargs - Refaster template
FileRules.PathIdentity - Prefer
Path#resolveSibling(Path)over more fragile or more verbose alternatives - Prefer
Path#resolveSibling(String)over more fragile or more verbose alternatives - Refaster template
FileRules.FilesReadStringWithCharset - Refaster template
FileRules.FilesReadString - Prefer
Files#createTempFile(String, String, FileAttribute[])over less secure alternatives - Prefer
Files#createTempFile(Path, String, String, FileAttribute[])over less secure alternatives - Refaster template
FileRules.PathToFileMkdirsOrFilesExists - Refaster template
FileRules.FileMkdirsOrFileExists - Refaster template
FileRules.FilesNewInputStreamPathOf - Refaster template
FileRules.FilesNewInputStreamFileToPath - Refaster template
FileRules.FilesNewOutputStreamPathOf - Refaster template
FileRules.FilesNewOutputStreamFileToPath - Prefer
Files#newBufferedReader(Path)over more verbose or contrived alternatives - Refaster template
FileRules.FilesNewBufferedReaderWithCharset