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
bcac1bd5
Unverified
Commit
bcac1bd5
authored
Nov 27, 2018
by
Ian Hickson
Committed by
GitHub
Nov 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle the case where there are no missing dartdocs too... (#24801)
parent
9ca129d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dartdocs.dart
dev/devicelab/bin/tasks/dartdocs.dart
+5
-4
No files found.
dev/devicelab/bin/tasks/dartdocs.dart
View file @
bcac1bd5
...
@@ -21,6 +21,7 @@ Future<void> main() async {
...
@@ -21,6 +21,7 @@ Future<void> main() async {
int
publicMembers
=
0
;
int
publicMembers
=
0
;
int
otherErrors
=
0
;
int
otherErrors
=
0
;
int
otherLines
=
0
;
int
otherLines
=
0
;
bool
sawFinalLine
=
false
;
await
for
(
String
entry
in
analysis
.
stdout
.
transform
<
String
>(
utf8
.
decoder
).
transform
<
String
>(
const
LineSplitter
()))
{
await
for
(
String
entry
in
analysis
.
stdout
.
transform
<
String
>(
utf8
.
decoder
).
transform
<
String
>(
const
LineSplitter
()))
{
entry
=
entry
.
trim
();
entry
=
entry
.
trim
();
print
(
'analyzer stdout:
$entry
'
);
print
(
'analyzer stdout:
$entry
'
);
...
@@ -30,17 +31,17 @@ Future<void> main() async {
...
@@ -30,17 +31,17 @@ Future<void> main() async {
publicMembers
+=
1
;
publicMembers
+=
1
;
}
else
if
(
entry
.
startsWith
(
'info •'
)
||
entry
.
startsWith
(
'warning •'
)
||
entry
.
startsWith
(
'error •'
))
{
}
else
if
(
entry
.
startsWith
(
'info •'
)
||
entry
.
startsWith
(
'warning •'
)
||
entry
.
startsWith
(
'error •'
))
{
otherErrors
+=
1
;
otherErrors
+=
1
;
}
else
if
(
entry
.
contains
(
' (ran in '
))
{
}
else
if
(
entry
.
contains
(
' (ran in '
)
&&
!
sawFinalLine
)
{
// ignore this line
// ignore this line once
sawFinalLine
=
true
;
}
else
if
(
entry
.
isNotEmpty
)
{
}
else
if
(
entry
.
isNotEmpty
)
{
otherLines
+=
1
;
otherLines
+=
1
;
print
(
'^ not sure what to do with that line ^'
);
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
()))
{
await
for
(
String
entry
in
analysis
.
stderr
.
transform
<
String
>(
utf8
.
decoder
).
transform
<
String
>(
const
LineSplitter
()))
{
print
(
'analyzer stderr:
$entry
'
);
print
(
'analyzer stderr:
$entry
'
);
if
(
entry
.
contains
(
'(ran in '
)
&&
!
sawFinalLine
)
{
if
(
entry
.
contains
(
'
(ran in '
)
&&
!
sawFinalLine
)
{
// ignore this line once
// ignore this line once
sawFinalLine
=
true
;
sawFinalLine
=
true
;
}
else
{
}
else
{
...
...
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