mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-29 07:56:53 +08:00
Adds checking for trailling commas on the project (#670)
* Testing a new linter option for trailling commas * Checking trailling commas on linter
This commit is contained in:
@ -18,6 +18,12 @@ done
|
||||
|
||||
cd .
|
||||
flutter pub get
|
||||
result=$(flutter pub run dart_code_metrics:metrics .)
|
||||
if [ "$result" != "" ]; then
|
||||
echo "flutter dart code metrics issues: $1"
|
||||
echo "$result"
|
||||
exit 1
|
||||
fi
|
||||
result=$(flutter analyze .)
|
||||
if ! echo "$result" | grep -q "No issues found!"; then
|
||||
echo "$result"
|
||||
|
||||
Reference in New Issue
Block a user