1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

flutter format -> dart format (#846)

This commit is contained in:
Brett Morgan
2021-07-10 07:33:22 +10:00
committed by GitHub
parent ae3c4e3c47
commit 054360e2a4

View File

@@ -1,14 +1,6 @@
function ci_projects () { function ci_projects () {
local channel="$1" local channel="$1"
# The `-n` option has been replaced with a more flexible `-o` for "output"
# in dev.
if [ $channel == "dev" ]; then
format_option="-o none"
else
format_option="-n"
fi
shift shift
local arr=("$@") local arr=("$@")
for PROJECT_NAME in "${arr[@]}" for PROJECT_NAME in "${arr[@]}"
@@ -23,7 +15,7 @@ function ci_projects () {
flutter analyze flutter analyze
# Run the formatter on all the dart files to make sure everything's linted. # Run the formatter on all the dart files to make sure everything's linted.
flutter format $format_option --set-exit-if-changed . dart format --output none --set-exit-if-changed .
# Run the actual tests. # Run the actual tests.
if [ -d "test" ] if [ -d "test" ]