Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e0f642ec
Unverified
Commit
e0f642ec
authored
Nov 27, 2018
by
Ian Hickson
Committed by
GitHub
Nov 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dartdocs devicelab test to handle current analyzer output (#24582)
parent
f683e4c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
dartdocs.dart
dev/devicelab/bin/tasks/dartdocs.dart
+9
-3
No files found.
dev/devicelab/bin/tasks/dartdocs.dart
View file @
e0f642ec
...
...
@@ -15,7 +15,7 @@ Future<void> main() async {
final
Stopwatch
clock
=
Stopwatch
()..
start
();
final
Process
analysis
=
await
startProcess
(
path
.
join
(
flutterDirectory
.
path
,
'bin'
,
'flutter'
),
<
String
>[
'analyze'
,
'--no-preamble'
,
'--
no-congratulate'
,
'--
flutter-repo'
,
'--dartdocs'
],
<
String
>[
'analyze'
,
'--no-preamble'
,
'--flutter-repo'
,
'--dartdocs'
],
workingDirectory:
flutterDirectory
.
path
,
);
int
publicMembers
=
0
;
...
...
@@ -34,18 +34,24 @@ Future<void> main() async {
// ignore this line
}
else
if
(
entry
.
isNotEmpty
)
{
otherLines
+=
1
;
print
(
'^ not sure what to do with that line ^'
);
}
}
bool
sawFinalLine
=
false
;
await
for
(
String
entry
in
analysis
.
stderr
.
transform
<
String
>(
utf8
.
decoder
).
transform
<
String
>(
const
LineSplitter
()))
{
print
(
'analyzer stderr:
$entry
'
);
if
(
entry
.
startsWith
(
'[lint] '
))
{
// ignore this line
if
(
entry
.
contains
(
'(ran in '
)
&&
!
sawFinalLine
)
{
// ignore this line once
sawFinalLine
=
true
;
}
else
{
otherLines
+=
1
;
print
(
'^ not sure what to do with that line ^'
);
}
}
final
int
result
=
await
analysis
.
exitCode
;
clock
.
stop
();
if
(!
sawFinalLine
)
throw
Exception
(
'flutter analyze did not output final message'
);
if
(
publicMembers
==
0
&&
otherErrors
==
0
&&
result
!=
0
)
throw
Exception
(
'flutter analyze exited with unexpected error code
$result
'
);
if
(
publicMembers
!=
0
&&
otherErrors
!=
0
&&
result
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment