mobile_nebula/.github/workflows/flutterfmt.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
244 B
Bash
Raw Normal View History

2021-05-03 21:55:51 +00:00
#!/bin/sh
DIRS="lib test"
EXIT=0
for DIR in $DIRS; do
OUT="$(dart format -l 120 --suppress-analytics "$DIR" | sed -e "s/^Formatted \(.*\)/::error file=$DIR\/\1::Not formatted/g")"
2021-05-03 21:55:51 +00:00
echo "$OUT" | grep "::error" && EXIT=1
done
exit $EXIT