Remove now-unnecessary command felt analyze
. (#160986)
Closes https://github.com/flutter/flutter/issues/154143. The entire engine sub-repo is now checked for Dart analysis issues, so a separate command is not needed.
This commit is contained in:
parent
18163e3695
commit
5a23a2a3c4
@ -194,13 +194,6 @@
|
||||
"check-licenses"
|
||||
],
|
||||
"script": "flutter/lib/web_ui/dev/felt"
|
||||
},
|
||||
{
|
||||
"name": "web engine analysis",
|
||||
"parameters": [
|
||||
"analyze"
|
||||
],
|
||||
"script": "flutter/lib/web_ui/dev/felt"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -1,62 +0,0 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:args/command_runner.dart';
|
||||
|
||||
import 'environment.dart';
|
||||
import 'pipeline.dart';
|
||||
import 'utils.dart';
|
||||
|
||||
class AnalyzeCommand extends Command<bool> with ArgUtils<bool> {
|
||||
@override
|
||||
String get name => 'analyze';
|
||||
|
||||
@override
|
||||
String get description => 'Analyze the Flutter web engine.';
|
||||
|
||||
@override
|
||||
FutureOr<bool> run() async {
|
||||
final Pipeline buildPipeline = Pipeline(steps: <PipelineStep>[PubGetStep(), AnalyzeStep()]);
|
||||
await buildPipeline.run();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/// Runs `dart pub get`.
|
||||
class PubGetStep extends ProcessStep {
|
||||
@override
|
||||
String get description => 'pub get';
|
||||
|
||||
@override
|
||||
bool get isSafeToInterrupt => true;
|
||||
|
||||
@override
|
||||
Future<ProcessManager> createProcess() {
|
||||
print('Running `dart pub get`...');
|
||||
return startProcess(environment.dartExecutable, <String>[
|
||||
'pub',
|
||||
'get',
|
||||
], workingDirectory: environment.webUiRootDir.path);
|
||||
}
|
||||
}
|
||||
|
||||
/// Runs `dart analyze --fatal-infos`.
|
||||
class AnalyzeStep extends ProcessStep {
|
||||
@override
|
||||
String get description => 'analyze';
|
||||
|
||||
@override
|
||||
bool get isSafeToInterrupt => true;
|
||||
|
||||
@override
|
||||
Future<ProcessManager> createProcess() {
|
||||
print('Running `dart analyze`...');
|
||||
return startProcess(environment.dartExecutable, <String>[
|
||||
'analyze',
|
||||
'--fatal-infos',
|
||||
], workingDirectory: environment.webUiRootDir.path);
|
||||
}
|
||||
}
|
@ -6,7 +6,6 @@ import 'dart:io' as io;
|
||||
|
||||
import 'package:args/command_runner.dart';
|
||||
|
||||
import 'analyze.dart';
|
||||
import 'build.dart';
|
||||
import 'clean.dart';
|
||||
import 'exceptions.dart';
|
||||
@ -18,7 +17,6 @@ import 'utils.dart';
|
||||
|
||||
CommandRunner<bool> runner =
|
||||
CommandRunner<bool>('felt', 'Command-line utility for building and testing Flutter web engine.')
|
||||
..addCommand(AnalyzeCommand())
|
||||
..addCommand(BuildCommand())
|
||||
..addCommand(CleanCommand())
|
||||
..addCommand(RollFallbackFontsCommand())
|
||||
|
@ -117,11 +117,6 @@ class GenerateBuilderJsonCommand extends Command<bool> {
|
||||
'parameters': <String>['check-licenses'],
|
||||
'script': 'flutter/lib/web_ui/dev/felt',
|
||||
},
|
||||
<String, dynamic>{
|
||||
'name': 'web engine analysis',
|
||||
'parameters': <String>['analyze'],
|
||||
'script': 'flutter/lib/web_ui/dev/felt',
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user