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
2bc67ed4
Commit
2bc67ed4
authored
Jan 31, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1480 from devoncarew/analyze_command
tweak the output for the analyze command
parents
b89935e5
d6b4759f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
analyze.dart
packages/flutter_tools/lib/src/commands/analyze.dart
+10
-2
No files found.
packages/flutter_tools/lib/src/commands/analyze.dart
View file @
2bc67ed4
...
...
@@ -18,12 +18,13 @@ import '../runner/flutter_command.dart';
class
AnalyzeCommand
extends
FlutterCommand
{
String
get
name
=>
'analyze'
;
String
get
description
=>
'Runs a carefully configured dartanalyzer over the current project
\'
s
d
art code.'
;
String
get
description
=>
'Runs a carefully configured dartanalyzer over the current project
\'
s
D
art code.'
;
AnalyzeCommand
()
{
argParser
.
addFlag
(
'flutter-repo'
,
help:
'Include all the examples and tests from the Flutter repository.'
,
defaultsTo:
false
);
argParser
.
addFlag
(
'current-directory'
,
help:
'Include all the Dart files in the current directory, if any.'
,
defaultsTo:
true
);
argParser
.
addFlag
(
'current-package'
,
help:
'Include the lib/main.dart file from the current directory, if any.'
,
defaultsTo:
true
);
argParser
.
addFlag
(
'preamble'
,
help:
'Display the number of files that will be analyzed.'
,
defaultsTo:
true
);
argParser
.
addFlag
(
'congratulate'
,
help:
'Show output even when there are no errors, warnings, hints, or lints.'
,
defaultsTo:
true
);
}
...
...
@@ -256,7 +257,14 @@ class AnalyzeCommand extends FlutterCommand {
mainFile
.
path
];
printStatus
(
cmd
.
join
(
' '
));
if
(
argResults
[
'preamble'
])
{
if
(
dartFiles
.
length
==
1
)
{
printStatus
(
'Analyzing
${dartFiles.first}
...'
);
}
else
{
printStatus
(
'Analyzing
${dartFiles.length}
files...'
);
}
}
Process
process
=
await
Process
.
start
(
cmd
[
0
],
cmd
.
sublist
(
1
),
...
...
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