google-java-format-gradle-plugin icon indicating copy to clipboard operation
google-java-format-gradle-plugin copied to clipboard

Consider making backups of the files before writing formatted content

Open sherter opened this issue 9 years ago • 2 comments

If an IOException occurs during writing the formatted content, or if the formatter itself changes the content in an unexpected way (see, for example, https://github.com/google/google-java-format/issues/47), we might loose data. Since we will eventually recommend people to run the formatting task in a pre-commit hook, this could be very bad.

sherter avatar May 06 '16 13:05 sherter

Why don't you use svc or git?

saifali40 avatar Apr 18 '19 16:04 saifali40

I do! How exactly does that help?

sherter avatar Apr 18 '19 19:04 sherter