[#1] Fail if all files are reset to committed version.

This commit is contained in:
Sven Weidauer 2022-06-06 10:18:05 +02:00
parent d00760732d
commit ba54c407cb
4 changed files with 40 additions and 9 deletions

View file

@ -73,4 +73,5 @@ if !parameters[:formatter] || parameters[:patterns].empty?
exit
end
FormatStaged.run(**parameters)
success = FormatStaged.run(**parameters)
exit success ? 0 : 1