a92a1e5064
The master branch was renamed to main. Change-Id: Ib38f3976b497c17e0bda904cb99864e127016272 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/311153 Reviewed-by: Samuel Rawlins <srawlins@google.com> Auto-Submit: Nate Bosch <nbosch@google.com> Commit-Queue: Nate Bosch <nbosch@google.com>
33 lines
763 B
Bash
Executable File
33 lines
763 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
# Analyze Dart code in the flutter/engine repo.
|
|
|
|
set -ex
|
|
|
|
checkout=$(pwd)
|
|
dart=$checkout/out/ReleaseX64/dart-sdk/bin/dart
|
|
sdk=$checkout/out/ReleaseX64/dart-sdk
|
|
tmpdir=$(mktemp -d)
|
|
cleanup() {
|
|
rm -rf "$tmpdir"
|
|
}
|
|
trap cleanup EXIT HUP INT QUIT TERM PIPE
|
|
cd "$tmpdir"
|
|
|
|
git clone --single-branch --branch main -vv \
|
|
https://dart.googlesource.com/external/github.com/flutter/engine
|
|
|
|
cd engine
|
|
|
|
# analyze lib/web_ui
|
|
echo Analyzing lib/web_ui...
|
|
pushd lib/web_ui
|
|
|
|
$dart pub get
|
|
$dart analyze --suppress-analytics --fatal-infos
|
|
|
|
popd
|