Closed
Description
I am really excited by the prospect of a styler pre-commit hook, like the example using scalafmt here:
https://medium.com/zyseme-technology/code-formatting-scalafmt-and-the-git-pre-commit-hook-3de71d099514
To do that, there needs to be a way to use styler that supports diffing instead of modifying in place; we wouldn't want the latter during a precommit. Is it possible to write the styled files to a tmp directory? If so, you could combine readLines and the diffobj package to show results during a precommit.
https://cran.r-project.org/web/packages/diffobj/vignettes/diffobj.html