Make hook better (#57)

This commit is contained in:
Patrick Stevens
2023-08-05 09:41:52 +01:00
committed by GitHub
parent 4c7b301f16
commit c32586d3a4
2 changed files with 3 additions and 2 deletions

1
.gitattributes vendored
View File

@@ -1,3 +1,4 @@
* eol=auto
*.sh text eol=lf
*.nix text eol=lf
hooks/pre-push text eol=lf

View File

@@ -1,6 +1,6 @@
#!/bin/sh
if ! dotnet tool run fantomas --check -r . ; then
echo "Formatting incomplete. Consider running 'dotnet tool run fantomas -r .'"
if ! dotnet tool run fantomas --check . ; then
echo "Formatting incomplete. Consider running 'dotnet tool run fantomas .'"
exit 1
fi