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
e98ae242
Commit
e98ae242
authored
Nov 17, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #436 from Hixie/analyzer
Allowing us to have a single error seems silly.
parents
1d3f734a
56b9245b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+2
-0
analyze.dart
packages/flutter_tools/lib/src/commands/analyze.dart
+2
-2
No files found.
packages/flutter/lib/src/widgets/basic.dart
View file @
e98ae242
...
...
@@ -749,6 +749,8 @@ class Positioned extends ParentDataWidget {
top
=
rect
.
top
,
width
=
rect
.
width
,
height
=
rect
.
height
,
right
=
null
,
bottom
=
null
,
super
(
key:
key
,
child:
child
);
final
double
top
;
...
...
packages/flutter_tools/lib/src/commands/analyze.dart
View file @
e98ae242
...
...
@@ -289,10 +289,10 @@ class AnalyzeCommand extends FlutterCommand {
}
}
if
(
exitCode
<
0
||
exitCode
>
3
)
// 1 = hints, 2 = warnings, 3 = errors
if
(
exitCode
<
0
||
exitCode
>
3
)
//
0 = nothing,
1 = hints, 2 = warnings, 3 = errors
return
exitCode
;
if
(
errorCount
>
1
)
if
(
errorCount
>
0
)
return
1
;
if
(
argResults
[
'congratulate'
])
print
(
'No analyzer warnings!'
);
...
...
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