File tree Expand file tree Collapse file tree
packages/devtools_shared/lib/src/server/handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ extension _ExtensionsApiHandler on Never {
9090 // separators, so the check holds for Windows file URIs as well. Requiring
9191 // an empty host rejects UNC paths (e.g. `file://server/share/...`) and
9292 // keeps `toFilePath()` from throwing on a non-local authority.
93- final isFileUri = devtoolsOptionsFileUri.scheme == 'file' &&
93+ final isFileUri =
94+ devtoolsOptionsFileUri.scheme == 'file' &&
9495 devtoolsOptionsFileUri.host.isEmpty;
9596 final fileName = isFileUri
9697 ? p.basename (devtoolsOptionsFileUri.toFilePath ())
Original file line number Diff line number Diff line change @@ -15,10 +15,9 @@ echo `pwd`
1515
1616if [ " $BOT " = " main" ]; then
1717
18- # Verify that dart format has been run.
1918 echo " Checking formatting..."
20- # Here, we use the dart instance from the flutter sdk .
21- $( dirname $( which flutter ) ) / dart format --output=none --set-exit-if-changed .
19+ # Here, we use the dart instance from the flutter SDK .
20+ dart format --output=none --set-exit-if-changed .
2221
2322 # Make sure the app versions are in sync.
2423 dt repo-check
Original file line number Diff line number Diff line change @@ -13,13 +13,25 @@ if [ "$PACKAGE" = "devtools_app_shared" ]; then
1313
1414 pushd $DEVTOOLS_DIR /packages/devtools_app_shared
1515 echo ` pwd`
16+
17+ echo " Checking formatting..."
18+ # Here, we use the dart instance from the flutter SDK.
19+ dart format --output=none --set-exit-if-changed .
20+
1621 flutter test test/
1722 popd
1823
1924elif [ " $PACKAGE " = " devtools_extensions" ]; then
2025
2126 pushd $DEVTOOLS_DIR /packages/devtools_extensions
2227 echo ` pwd`
28+
29+ echo " Checking formatting..."
30+ # Here, we use the dart instance from the flutter SDK.
31+ dart format --output=none --set-exit-if-changed .
32+
33+ # Note that this will _not_ test any tests in nested directories, if we add
34+ # any.
2335 flutter test test/* _test.dart
2436 # Skip this on Windows because `flutter test --platform chrome`
2537 # appears to hang there.
@@ -33,6 +45,11 @@ elif [ "$PACKAGE" = "devtools_shared" ]; then
3345
3446 pushd $DEVTOOLS_DIR /packages/devtools_shared
3547 echo ` pwd`
48+
49+ echo " Checking formatting..."
50+ # Here, we use the dart instance from the flutter SDK.
51+ dart format --output=none --set-exit-if-changed .
52+
3653 dart test test/
3754 popd
3855
Original file line number Diff line number Diff line change @@ -11,5 +11,10 @@ source ./tool/ci/setup.sh
1111
1212pushd $DEVTOOLS_DIR /tool
1313echo ` pwd`
14+
15+ echo " Checking formatting..."
16+ # Here, we use the dart instance from the flutter SDK.
17+ dart format --output=none --set-exit-if-changed lib/ test/
18+
1419flutter test test/
15- popd
20+ popd
You can’t perform that action at this time.
0 commit comments