Commit Graph

4 Commits

Author SHA1 Message Date
WebFreak001 4a6078779a Fix #568, don't output empty files without error
Now when an error in formatting happens, it never outputs anything and
doesn't override the file when working inplace.

Additionally dfmt is no longer able to fail in the middle of a file, as
now we first write everything to a buffer and only if everything was
successful, that buffer is printed to stdout or written to the inplace
file.

This should also guard against segfaults with inplace file formatting
erasing parts of the file, as well as the user thinking it was
successful, even though dfmt didn't finish properly.
2022-10-15 02:33:04 +02:00
Jan Jurzitza ad00b113a9 use test_with_package for libdparse test
test both minimum and maximum allowed libdparse versions with dub
2020-06-08 14:21:33 +02:00
BBasile b01c624ef0 fix #236 - Allow constraints to be indented by a single tab (#337)
fix #236 - Allow constraints to be indented by a single tab
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-03-02 16:26:54 +01:00
skl131313 8361a3a153 Refactor travis config to include dub, osx, and ldc. 2017-05-17 01:28:35 -04:00