mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-28 23:46:52 +08:00
PR nits
This commit is contained in:
@ -16,19 +16,14 @@ for f in doc/examples/**/pubspec.yaml; do
|
|||||||
cd - > /dev/null
|
cd - > /dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
analyzer() {
|
cd .
|
||||||
cd $1
|
flutter pub get
|
||||||
flutter pub get
|
result=$(flutter analyze .)
|
||||||
result=$(flutter analyze .)
|
if ! echo "$result" | grep -q "No issues found!"; then
|
||||||
if ! echo "$result" | grep -q "No issues found!"; then
|
echo "$result"
|
||||||
echo "$result"
|
echo "flutter analyze issue: $1"
|
||||||
echo "flutter analyze issue: $1"
|
exit 1
|
||||||
exit 1
|
fi
|
||||||
fi
|
|
||||||
cd - > /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
analyzer .
|
|
||||||
|
|
||||||
echo "success"
|
echo "success"
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user