Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
a7b5522d
E
engine
项目概览
weixin_43355755
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
a7b5522d
编写于
7月 13, 2021
作者:
D
Devon Carew
提交者:
GitHub
7月 13, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor and simplify CI dart analysis (#27370)
上级
093c4ed1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
40 addition
and
109 deletion
+40
-109
analysis_options.yaml
analysis_options.yaml
+2
-6
ci/analyze.sh
ci/analyze.sh
+32
-102
flutter_frontend_server/pubspec.yaml
flutter_frontend_server/pubspec.yaml
+0
-1
lib/ui/analysis_options.yaml
lib/ui/analysis_options.yaml
+6
-0
未找到文件。
analysis_options.yaml
浏览文件 @
a7b5522d
...
...
@@ -14,13 +14,9 @@
# - "public_member_api_docs" enabled.
analyzer
:
exclude
:
[
# this test pretends to be part of dart:ui and results in lots of false
# positives.
testing/dart/window_hooks_integration_test.dart
,
exclude
:
# Fixture depends on dart:ui and raises false positives.
flutter_frontend_server/test/fixtures/lib/main.dart
]
-
flutter_frontend_server/test/fixtures/lib/main.dart
strong-mode
:
implicit-casts
:
false
implicit-dynamic
:
false
...
...
ci/analyze.sh
浏览文件 @
a7b5522d
...
...
@@ -33,110 +33,40 @@ FLUTTER_DIR="$SRC_DIR/flutter"
DART_BIN
=
"
$SRC_DIR
/third_party/dart/tools/sdks/dart-sdk/bin"
PUB
=
"
$DART_BIN
/pub"
DART
=
"
$DART_BIN
/dart"
DART_ANALYZER
=
"
$DART_BIN
/dartanalyzer"
echo
"Using analyzer from
$DART_ANALYZER
"
"
$DART_ANALYZER
"
--version
function
analyze
()
(
local
last_arg
=
"
${
!#
}
"
local
results
# Grep sets its return status to non-zero if it doesn't find what it's
# looking for.
set
+e
results
=
"
$(
"
$DART_ANALYZER
"
"
$@
"
2>&1 |
grep
-Ev
"No issues found!"
|
grep
-Ev
"Analyzing.+
$last_arg
"
)
"
set
-e
echo
"
$results
"
if
[
-n
"
$results
"
]
;
then
echo
"Failed analysis of
$last_arg
"
return
1
else
echo
"Success: no issues found in
$last_arg
"
fi
return
0
)
echo
"Analyzing dart:ui library..."
analyze
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$SRC_DIR
/out/host_debug_unopt/gen/dart-pkg/sky_engine/lib/ui/ui.dart"
echo
"Analyzing spirv library..."
analyze
\
--packages
=
"
$FLUTTER_DIR
/lib/spirv/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/lib/spirv"
echo
"Analyzing ci/"
analyze
\
--packages
=
"
$FLUTTER_DIR
/ci/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/ci"
echo
"Analyzing flutter_frontend_server..."
analyze
\
--packages
=
"
$FLUTTER_DIR
/flutter_frontend_server/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/flutter_frontend_server"
echo
"Analyzing tools/licenses..."
analyze
\
--packages
=
"
$FLUTTER_DIR
/tools/licenses/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/tools/licenses/analysis_options.yaml"
\
"
$FLUTTER_DIR
/tools/licenses"
echo
"Analyzing testing/litetest"
analyze
\
--packages
=
"
$FLUTTER_DIR
/testing/litetest/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/testing/litetest"
echo
"Analyzing testing/benchmark"
analyze
\
--packages
=
"
$FLUTTER_DIR
/testing/benchmark/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/testing/benchmark"
echo
"Analyzing testing/smoke_test_failure"
analyze
\
--packages
=
"
$FLUTTER_DIR
/testing/smoke_test_failure/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/testing/smoke_test_failure"
echo
"Analyzing testing/dart..."
analyze
\
--packages
=
"
$FLUTTER_DIR
/testing/dart/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/testing/dart"
echo
"Analyzing testing/scenario_app..."
analyze
\
--packages
=
"
$FLUTTER_DIR
/testing/scenario_app/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/testing/scenario_app"
echo
"Analyzing testing/symbols..."
analyze
\
--packages
=
"
$FLUTTER_DIR
/testing/symbols/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/testing/symbols"
echo
"Analyzing githooks..."
analyze
\
--packages
=
"
$FLUTTER_DIR
/tools/githooks/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/tools/githooks"
echo
"Analyzing tools/clang_tidy"
analyze
\
--packages
=
"
$FLUTTER_DIR
/tools/clang_tidy/.dart_tool/package_config.json"
\
--options
"
$FLUTTER_DIR
/analysis_options.yaml"
\
"
$FLUTTER_DIR
/tools/clang_tidy"
echo
"Using dart from
$DART_BIN
"
"
$DART
"
--version
echo
""
"
$DART
"
analyze
"
$FLUTTER_DIR
/lib/ui"
"
$DART
"
analyze
"
$FLUTTER_DIR
/lib/spirv"
"
$DART
"
analyze
"
$FLUTTER_DIR
/ci"
"
$DART
"
analyze
"
$FLUTTER_DIR
/flutter_frontend_server"
"
$DART
"
analyze
"
$FLUTTER_DIR
/tools/licenses"
"
$DART
"
analyze
"
$FLUTTER_DIR
/testing/litetest"
"
$DART
"
analyze
"
$FLUTTER_DIR
/testing/benchmark"
"
$DART
"
analyze
"
$FLUTTER_DIR
/testing/smoke_test_failure"
"
$DART
"
analyze
"
$FLUTTER_DIR
/testing/dart"
"
$DART
"
analyze
"
$FLUTTER_DIR
/testing/scenario_app"
"
$DART
"
analyze
"
$FLUTTER_DIR
/testing/symbols"
"
$DART
"
analyze
"
$FLUTTER_DIR
/tools/githooks"
"
$DART
"
analyze
"
$FLUTTER_DIR
/tools/clang_tidy"
echo
""
# Check that dart libraries conform.
echo
"Checking web_ui api conformance..."
(
cd
"
$FLUTTER_DIR
/web_sdk"
;
"
$
PUB
"
get
)
(
cd
"
$FLUTTER_DIR
/web_sdk"
;
"
$
DART
"
pub
get
)
(
cd
"
$FLUTTER_DIR
"
;
"
$DART
"
"web_sdk/test/api_conform_test.dart"
)
flutter_frontend_server/pubspec.yaml
浏览文件 @
a7b5522d
...
...
@@ -7,7 +7,6 @@ publish_to: none
version
:
0.1.1-dev
description
:
Communication pipe to Dart Frontend
homepage
:
https://flutter.dev
author
:
Flutter Authors <flutter-dev@googlegroups.com>
# Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg or
...
...
lib/ui/analysis_options.yaml
0 → 100644
浏览文件 @
a7b5522d
include
:
../../analysis_options.yaml
analyzer
:
exclude
:
# fixtures/ depends on dart:ui and raises false positives.
-
fixtures/**
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录