blob: ffb49b357caed6aa90728e008b81b0cd4ee5bd49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/usr/bin/env bash
set -e
fix=false
while test $# -gt 0; do
case "$1" in
-h|--help)
echo 'options:'
echo '-h, --help show help'
echo '--fix attempt to fix violations'
exit 0
;;
--fix)
fix=true
shift
;;
*)
break
;;
esac
done
if [ "$fix" == false ]; then
echo $'\n🛠️ dotnet format --verbosity normal --verify-no-changes\n'
dotnet format --verbosity normal --verify-no-changes
else
echo $'\n🛠️ dotnet format --verbosity normal\n'
dotnet format --verbosity normal
fi
|