Enable avoid_redundant_argument_values lint (#91409)
This commit is contained in:
@@ -239,7 +239,6 @@ final ArgParser _argParser = ArgParser()
|
||||
..addMultiOption(
|
||||
'task',
|
||||
abbr: 't',
|
||||
splitCommas: true,
|
||||
help: 'Either:\n'
|
||||
' - the name of a task defined in manifest.yaml.\n'
|
||||
' Example: complex_layout__start_up.\n'
|
||||
@@ -362,13 +361,10 @@ final ArgParser _argParser = ArgParser()
|
||||
)
|
||||
..addFlag(
|
||||
'silent',
|
||||
negatable: true,
|
||||
defaultsTo: false,
|
||||
)
|
||||
..addMultiOption(
|
||||
'test',
|
||||
hide: true,
|
||||
splitCommas: true,
|
||||
callback: (List<String> value) {
|
||||
if (value.isNotEmpty) {
|
||||
throw const FormatException(
|
||||
|
||||
@@ -13,7 +13,5 @@ Future<void> main() async {
|
||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||
'test_driver/animated_image.dart',
|
||||
'animated_image',
|
||||
measureCpuGpu: true,
|
||||
measureMemory: true,
|
||||
).run);
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ import 'package:flutter_devicelab/tasks/perf_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
||||
await task(createComplexLayoutScrollPerfTest(measureCpuGpu: true));
|
||||
await task(createComplexLayoutScrollPerfTest());
|
||||
}
|
||||
|
||||
@@ -115,7 +115,6 @@ Future<void> main() async {
|
||||
'list',
|
||||
'runtimes',
|
||||
],
|
||||
canFail: false,
|
||||
workingDirectory: flutterDirectory.path,
|
||||
);
|
||||
|
||||
@@ -166,7 +165,6 @@ Future<void> main() async {
|
||||
'com.apple.CoreSimulator.SimDeviceType.iPhone-11',
|
||||
iOSSimRuntime,
|
||||
],
|
||||
canFail: false,
|
||||
workingDirectory: flutterDirectory.path,
|
||||
);
|
||||
|
||||
@@ -180,7 +178,6 @@ Future<void> main() async {
|
||||
'com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-44mm',
|
||||
watchSimRuntime,
|
||||
],
|
||||
canFail: false,
|
||||
workingDirectory: flutterDirectory.path,
|
||||
);
|
||||
|
||||
@@ -188,7 +185,6 @@ Future<void> main() async {
|
||||
await eval(
|
||||
'xcrun',
|
||||
<String>['simctl', 'pair', watchDeviceID, phoneDeviceID],
|
||||
canFail: false,
|
||||
workingDirectory: flutterDirectory.path,
|
||||
);
|
||||
|
||||
@@ -196,13 +192,11 @@ Future<void> main() async {
|
||||
await eval(
|
||||
'xcrun',
|
||||
<String>['simctl', 'bootstatus', phoneDeviceID, '-b'],
|
||||
canFail: false,
|
||||
workingDirectory: flutterDirectory.path,
|
||||
);
|
||||
await eval(
|
||||
'xcrun',
|
||||
<String>['simctl', 'bootstatus', watchDeviceID, '-b'],
|
||||
canFail: false,
|
||||
workingDirectory: flutterDirectory.path,
|
||||
);
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@ Future<void> main() async {
|
||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||
'test_driver/large_image_changer.dart',
|
||||
'large_image_changer',
|
||||
measureCpuGpu: true,
|
||||
measureMemory: true,
|
||||
// This benchmark doesn't care about frame times, frame times will be heavily
|
||||
// impacted by IO time for loading the image initially.
|
||||
benchmarkScoreKeys: <String>[
|
||||
|
||||
@@ -8,5 +8,5 @@ import 'package:flutter_devicelab/tasks/perf_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
||||
await task(createPostBackdropFilterPerfTest(measureCpuGpu: true));
|
||||
await task(createPostBackdropFilterPerfTest());
|
||||
}
|
||||
|
||||
@@ -32,7 +32,6 @@ void main() {
|
||||
'/smuggle-it',
|
||||
'lib/route.dart',
|
||||
],
|
||||
canFail: false,
|
||||
);
|
||||
});
|
||||
section('TEST WHETHER `flutter run --route` WORKS');
|
||||
|
||||
@@ -8,5 +8,5 @@ import 'package:flutter_devicelab/tasks/perf_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
||||
await task(createSimpleAnimationPerfTest(measureCpuGpu: true));
|
||||
await task(createSimpleAnimationPerfTest());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user