Skip to content

Commit

Permalink
use the dart analyze command to analyze source (flutter#22212)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew authored Oct 30, 2020
1 parent 7d6180c commit 8c5b0a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/web_ui/dev/web_engine_analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

0 comments on commit 8c5b0a6

Please sign in to comment.