mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #436 from Hixie/analyzer
Allowing us to have a single error seems silly.
This commit is contained in:
commit
e98ae2424f
@ -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;
|
||||
|
||||
@ -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!');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user