forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analyze.sh
executable file
·57 lines (53 loc) · 2.52 KB
/
analyze.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
echo "Analyzing dart:ui library..."
RESULTS=`dartanalyzer \
--options flutter/analysis_options.yaml \
out/host_debug_unopt/gen/sky/bindings/dart_ui/ui.dart \
2>&1 \
| grep -Ev "No issues found!" \
| grep -Ev "Analyzing.+out/host_debug_unopt/gen/sky/bindings/dart_ui/ui\.dart"`
echo "$RESULTS"
if [ -n "$RESULTS" ]; then
echo "Failed."
exit 1;
fi
echo "Analyzing frontend_server..."
RESULTS=`dartanalyzer \
--packages=flutter/frontend_server/.packages \
--options flutter/analysis_options.yaml \
flutter/frontend_server \
2>&1 \
| grep -Ev "No issues found!" \
| grep -Ev "Analyzing.+frontend_server"`
echo "$RESULTS"
if [ -n "$RESULTS" ]; then
echo "Failed."
exit 1;
fi
echo "Analyzing flutter_kernel_transformers..."
RESULTS=`dartanalyzer \
--packages=flutter/flutter_kernel_transformers/.packages \
--options flutter/analysis_options.yaml \
flutter/flutter_kernel_transformers \
2>&1 \
| grep -Ev "No issues found!" \
| grep -Ev "Analyzing.+flutter_kernel_transformers"`
echo "$RESULTS"
if [ -n "$RESULTS" ]; then
echo "Failed."
exit 1;
fi
echo "Analyzing tools/licenses..."
(cd flutter/tools/licenses && pub get)
RESULTS=`dartanalyzer \
--packages=flutter/tools/licenses/.packages \
--options flutter/tools/licenses/analysis_options.yaml \
flutter/tools/licenses \
2>&1 \
| grep -Ev "No issues found!" \
| grep -Ev "Analyzing.+tools/licenses"`
echo "$RESULTS"
if [ -n "$RESULTS" ]; then
echo "Failed."
exit 1;
fi