tangled
alpha
login
or
join now
stream.place
/
streamplace
Live video on the AT Protocol
74
fork
atom
overview
issues
1
pulls
pipelines
add gofmt check to see if files could be formatted
seiso.moe
9 months ago
371887d4
376b4096
+7
1 changed file
expand all
collapse all
unified
split
.husky
pre-commit
+7
.husky/pre-commit
···
1
1
./node_modules/.bin/lint-staged
2
2
cd js/app && yarn run check
3
3
+
4
4
+
unformatted=$(gofmt -l $(find . -name "*.go"))
5
5
+
if [ -n "$unformatted" ]; then
6
6
+
printf "The following files are not formatted.\n"
7
7
+
printf "%s\n" "$unformatted"
8
8
+
exit 1
9
9
+
fi