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('dartdocs',help:'List every public member that is lacking documentation (only examines files in the Flutter repository).',defaultsTo:false);
argParser.addFlag('watch',help:'Run analysis continuously, watching the filesystem for changes.',negatable:false);
...
...
@@ -29,10 +28,13 @@ class AnalyzeCommand extends FlutterCommand {
usesPubOption();
// Not used by analyze --watch
argParser.addFlag('congratulate',help:'Show output even when there are no errors, warnings, hints, or lints.',defaultsTo:true);
argParser.addFlag('preamble',help:'Display the number of files that will be analyzed.',defaultsTo:true);
argParser.addFlag('congratulate',help:'When analyzing the flutter repository, show output even when there are no errors, warnings, hints, or lints.',defaultsTo:true);
argParser.addFlag('preamble',help:'When analyzing the flutter repository, display the number of files that will be analyzed.',defaultsTo:true);
}
/// The working directory for testing analysis using dartanalyzer.
finalDirectoryworkingDirectory;
@override
Stringgetname=>'analyze';
...
...
@@ -57,7 +59,7 @@ class AnalyzeCommand extends FlutterCommand {