未验证 提交 8c5b0a6a 编写于 作者: D Devon Carew 提交者: GitHub

use the dart analyze command to analyze source (#22212)

上级 7d6180c3
......@@ -2,7 +2,7 @@
set -e
set -x
# web_analysis: a command-line utility for running dart analyzer on Flutter Web
# web_analysis: a command-line utility for running 'dart analyze' on Flutter Web
# Engine. Used/Called by LUCI recipes:
#
# See: https://flutter.googlesource.com/recipes/+/refs/heads/master/recipes/web_engine.py
......@@ -11,10 +11,10 @@ echo "Engine path $ENGINE_PATH"
DART_SDK_DIR="${ENGINE_PATH}/src/out/host_debug_unopt/dart-sdk"
PUB_PATH="$DART_SDK_DIR/bin/pub"
DART_ANALYZER_PATH="$DART_SDK_DIR/bin/dartanalyzer"
DART_PATH="$DART_SDK_DIR/bin/dart"
echo "Running \`pub get\` in 'engine/src/flutter/lib/web_ui'"
(cd "$WEB_UI_DIR"; $PUB_PATH get)
echo "Running \`dartanalyzer\` in 'engine/src/flutter/lib/web_ui'"
(cd "$WEB_UI_DIR"; $DART_ANALYZER_PATH --enable-experiment=non-nullable --fatal-warnings --fatal-hints dev/ lib/ test/ tool/)
echo "Running \`dart analyze\` in 'engine/src/flutter/lib/web_ui'"
(cd "$WEB_UI_DIR"; $DART_PATH analyze --fatal-infos)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册