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
a7e3b1a3
Unverified
Commit
a7e3b1a3
authored
Mar 19, 2021
by
Michael Goderbauer
Committed by
GitHub
Mar 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up ignores that are not ignoring anything (#78493)
parent
65f232fd
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
15 additions
and
37 deletions
+15
-37
vmservice_driver.dart
packages/flutter_driver/lib/src/driver/vmservice_driver.dart
+1
-6
_extension_web.dart
...ages/flutter_driver/lib/src/extension/_extension_web.dart
+0
-1
stub_command.dart
...lutter_driver/test/src/real_tests/stubs/stub_command.dart
+1
-1
stub_command_extension.dart
...ver/test/src/real_tests/stubs/stub_command_extension.dart
+1
-1
stub_finder.dart
...flutter_driver/test/src/real_tests/stubs/stub_finder.dart
+1
-1
test_async_utils.dart
packages/flutter_test/lib/src/test_async_utils.dart
+0
-1
window_test.dart
packages/flutter_test/test/window_test.dart
+1
-1
daemon.dart
packages/flutter_tools/lib/src/commands/daemon.dart
+1
-3
flutter_web_goldens.dart
packages/flutter_tools/lib/src/test/flutter_web_goldens.dart
+0
-1
flutter_web_platform.dart
...ages/flutter_tools/lib/src/test/flutter_web_platform.dart
+1
-3
vmservice.dart
packages/flutter_tools/lib/src/vmservice.dart
+0
-3
test_driver.dart
...ges/flutter_tools/test/integration.shard/test_driver.dart
+0
-3
plugin_event_channel.dart
...ges/flutter_web_plugins/lib/src/plugin_event_channel.dart
+3
-3
plugin_registry.dart
packages/flutter_web_plugins/lib/src/plugin_registry.dart
+1
-1
plugin_event_channel_test.dart
...s/flutter_web_plugins/test/plugin_event_channel_test.dart
+1
-1
plugin_registry_test.dart
packages/flutter_web_plugins/test/plugin_registry_test.dart
+1
-1
dart_vm.dart
...s/fuchsia_remote_debug_protocol/lib/src/dart/dart_vm.dart
+0
-3
_extension_web.dart
packages/integration_test/lib/_extension_web.dart
+0
-1
integration_test.dart
packages/integration_test/lib/integration_test.dart
+1
-1
integration_test_driver.dart
packages/integration_test/lib/integration_test_driver.dart
+1
-1
No files found.
packages/flutter_driver/lib/src/driver/vmservice_driver.dart
View file @
a7e3b1a3
...
...
@@ -225,9 +225,6 @@ class VMServiceFlutterDriver extends FlutterDriver {
final
Health
health
=
await
driver
.
checkHealth
();
if
(
health
.
status
!=
HealthStatus
.
ok
)
{
// TODO(dnfield): Remove ignore once internal repo is up to date
// https://github.com/flutter/flutter/issues/74518
// ignore: await_only_futures
await
client
.
dispose
();
await
client
.
onDone
;
throw
DriverError
(
'Flutter application health check failed.'
);
...
...
@@ -519,9 +516,7 @@ class VMServiceFlutterDriver extends FlutterDriver {
@override
Future
<
void
>
close
()
async
{
// TODO(dnfield): Remove ignore once internal repo is up to date
// https://github.com/flutter/flutter/issues/74518
await
_serviceClient
.
dispose
();
// ignore: await_only_futures
await
_serviceClient
.
dispose
();
await
_serviceClient
.
onDone
;
}
}
...
...
packages/flutter_driver/lib/src/extension/_extension_web.dart
View file @
a7e3b1a3
...
...
@@ -19,7 +19,6 @@ import 'dart:js_util' as js_util;
/// * [_extension_io.dart], which has the dart:io implementation
void
registerWebServiceExtension
(
Future
<
Map
<
String
,
dynamic
>>
Function
(
Map
<
String
,
String
>)
call
)
{
js_util
.
setProperty
(
html
.
window
,
r'$flutterDriver'
,
allowInterop
((
dynamic
message
)
async
{
// ignore: undefined_function, undefined_identifier
final
Map
<
String
,
String
>
params
=
Map
<
String
,
String
>.
from
(
jsonDecode
(
message
as
String
)
as
Map
<
String
,
dynamic
>);
final
Map
<
String
,
dynamic
>
result
=
Map
<
String
,
dynamic
>.
from
(
...
...
packages/flutter_driver/test/src/real_tests/stubs/stub_command.dart
View file @
a7e3b1a3
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter_driver/flutter_driver.dart'
;
// ignore: import_of_legacy_library_into_null_safe
import
'package:flutter_driver/flutter_driver.dart'
;
class
StubNestedCommand
extends
CommandWithTarget
{
StubNestedCommand
(
SerializableFinder
finder
,
this
.
times
,
{
Duration
?
timeout
})
...
...
packages/flutter_driver/test/src/real_tests/stubs/stub_command_extension.dart
View file @
a7e3b1a3
...
...
@@ -3,7 +3,7 @@
// found in the LICENSE file.
import
'package:flutter_driver/driver_extension.dart'
;
import
'package:flutter_driver/flutter_driver.dart'
;
// ignore: import_of_legacy_library_into_null_safe
import
'package:flutter_driver/flutter_driver.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'stub_command.dart'
;
...
...
packages/flutter_driver/test/src/real_tests/stubs/stub_finder.dart
View file @
a7e3b1a3
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter_driver/flutter_driver.dart'
;
// ignore: import_of_legacy_library_into_null_safe
import
'package:flutter_driver/flutter_driver.dart'
;
class
StubFinder
extends
SerializableFinder
{
StubFinder
(
this
.
keyString
);
...
...
packages/flutter_test/lib/src/test_async_utils.dart
View file @
a7e3b1a3
...
...
@@ -47,7 +47,6 @@ class _AsyncScope {
class
TestAsyncUtils
{
// This class is not meant to be instatiated or extended; this constructor
// prevents instantiation and extension.
// ignore: unused_element
TestAsyncUtils
.
_
();
static
const
String
_className
=
'TestAsyncUtils'
;
...
...
packages/flutter_test/test/window_test.dart
View file @
a7e3b1a3
...
...
@@ -10,7 +10,7 @@ import 'package:flutter_test/flutter_test.dart';
void
main
(
)
{
test
(
'TestWindow can handle new methods without breaking'
,
()
{
final
dynamic
testWindow
=
TestWindow
(
window:
ui
.
window
);
// ignore: unnecessary_nullable_for_final_variable_declarations
final
dynamic
testWindow
=
TestWindow
(
window:
ui
.
window
);
expect
(
testWindow
.
someNewProperty
,
null
);
});
...
...
packages/flutter_tools/lib/src/commands/daemon.dart
View file @
a7e3b1a3
...
...
@@ -427,9 +427,7 @@ class AppDomain extends Domain {
registerHandler
(
'detach'
,
detach
);
}
// TODO(jonahwilliams): update after google3 uuid is updated.
// ignore: prefer_const_constructors
static
final
Uuid
_uuidGenerator
=
Uuid
();
static
const
Uuid
_uuidGenerator
=
Uuid
();
static
String
_getNewAppId
()
=>
_uuidGenerator
.
v4
();
...
...
packages/flutter_tools/lib/src/test/flutter_web_goldens.dart
View file @
a7e3b1a3
...
...
@@ -4,7 +4,6 @@
// @dart = 2.8
// ignore_for_file: implementation_imports
import
'dart:async'
;
import
'dart:typed_data'
;
...
...
packages/flutter_tools/lib/src/test/flutter_web_platform.dart
View file @
a7e3b1a3
...
...
@@ -4,8 +4,6 @@
// @dart = 2.8
// ignore_for_file: implementation_imports
import
'dart:async'
;
import
'dart:typed_data'
;
...
...
@@ -19,7 +17,7 @@ import 'package:shelf/shelf_io.dart' as shelf_io;
import
'package:shelf_static/shelf_static.dart'
;
import
'package:shelf_web_socket/shelf_web_socket.dart'
;
import
'package:stream_channel/stream_channel.dart'
;
import
'package:test_core/src/platform.dart'
;
import
'package:test_core/src/platform.dart'
;
// ignore: implementation_imports
import
'package:web_socket_channel/web_socket_channel.dart'
;
import
'package:webkit_inspection_protocol/webkit_inspection_protocol.dart'
hide
StackTrace
;
...
...
packages/flutter_tools/lib/src/vmservice.dart
View file @
a7e3b1a3
...
...
@@ -892,9 +892,6 @@ class FlutterVmService {
}
Future
<
void
>
dispose
()
async
{
// TODO(dnfield): Remove ignore once internal repo is up to date
// https://github.com/flutter/flutter/issues/74518
// ignore: await_only_futures
await
service
.
dispose
();
}
}
...
...
packages/flutter_tools/test/integration.shard/test_driver.dart
View file @
a7e3b1a3
...
...
@@ -634,9 +634,6 @@ class FlutterRunTestDriver extends FlutterTestDriver {
}
if
(
_vmService
!=
null
)
{
_debugPrint
(
'Closing VM service...'
);
// TODO(dnfield): Remove ignore once internal repo is up to date
// https://github.com/flutter/flutter/issues/74518
// ignore: await_only_futures
await
_vmService
.
dispose
();
}
if
(
_currentRunningAppId
!=
null
)
{
...
...
packages/flutter_web_plugins/lib/src/plugin_event_channel.dart
View file @
a7e3b1a3
...
...
@@ -43,8 +43,8 @@ class PluginEventChannel<T> {
this
.
name
,
[
this
.
codec
=
const
StandardMethodCodec
(),
this
.
binaryMessenger
,
])
:
assert
(
name
!=
null
),
// ignore: unnecessary_null_comparison
assert
(
codec
!=
null
);
// ignore: unnecessary_null_comparison
])
:
assert
(
name
!=
null
),
assert
(
codec
!=
null
);
/// The logical channel on which communication happens.
///
...
...
@@ -108,7 +108,7 @@ class _EventChannelHandler<T> {
this
.
codec
,
this
.
controller
,
this
.
messenger
,
)
:
assert
(
messenger
!=
null
);
// ignore: unnecessary_null_comparison
)
:
assert
(
messenger
!=
null
);
final
String
name
;
final
MethodCodec
codec
;
...
...
packages/flutter_web_plugins/lib/src/plugin_registry.dart
View file @
a7e3b1a3
...
...
@@ -205,7 +205,7 @@ class PluginRegistry extends Registrar {
'This feature was deprecated after v1.26.0-18.0.pre.'
)
BinaryMessenger
?
binaryMessenger
,
])
:
super
();
// ignore: avoid_unused_constructor_parameters
])
:
super
();
/// Returns `this`. The argument is ignored.
@Deprecated
(
...
...
packages/flutter_web_plugins/test/plugin_event_channel_test.dart
View file @
a7e3b1a3
...
...
@@ -5,7 +5,7 @@
@TestOn
(
'chrome'
)
// Uses web-only Flutter SDK
import
'dart:async'
;
import
'dart:ui'
as
ui
;
// ignore: unused_import, it looks unused as web-only elements are the only elements used.
import
'dart:ui'
as
ui
;
import
'package:flutter/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter_web_plugins/test/plugin_registry_test.dart
View file @
a7e3b1a3
...
...
@@ -4,7 +4,7 @@
@TestOn
(
'chrome'
)
// Uses web-only Flutter SDK
import
'dart:ui'
as
ui
;
// ignore: unused_import, it looks unused as web-only elements are the only elements used.
import
'dart:ui'
as
ui
;
import
'package:flutter/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/fuchsia_remote_debug_protocol/lib/src/dart/dart_vm.dart
View file @
a7e3b1a3
...
...
@@ -157,9 +157,6 @@ class DartVm {
///
/// After this function completes this object is no longer usable.
Future
<
void
>
stop
()
async
{
// TODO(dnfield): Remove ignore once internal repo is up to date
// https://github.com/flutter/flutter/issues/74518
// ignore: await_only_futures
await
_vmService
.
dispose
();
await
_vmService
.
onDone
;
}
...
...
packages/integration_test/lib/_extension_web.dart
View file @
a7e3b1a3
...
...
@@ -22,7 +22,6 @@ void registerWebServiceExtension(
Future
<
Map
<
String
,
dynamic
>>
Function
(
Map
<
String
,
String
>)
call
)
{
js_util
.
setProperty
(
html
.
window
,
r'$flutterDriver'
,
allowInterop
((
dynamic
message
)
async
{
// ignore: undefined_function, undefined_identifier
final
Map
<
String
,
String
>
params
=
Map
<
String
,
String
>.
from
(
jsonDecode
(
message
as
String
)
as
Map
<
String
,
dynamic
>);
final
Map
<
String
,
dynamic
>
result
=
...
...
packages/integration_test/lib/integration_test.dart
View file @
a7e3b1a3
...
...
@@ -202,7 +202,7 @@ class IntegrationTestWidgetsFlutterBinding extends LiveTestWidgetsFlutterBinding
List
<
String
>
streams
=
const
<
String
>[
'all'
],
@visibleForTesting
vm
.
VmService
?
vmService
,
})
async
{
assert
(
streams
!=
null
);
// ignore: unnecessary_null_comparison
assert
(
streams
!=
null
);
assert
(
streams
.
isNotEmpty
);
if
(
vmService
!=
null
)
{
_vmService
=
vmService
;
...
...
packages/integration_test/lib/integration_test_driver.dart
View file @
a7e3b1a3
...
...
@@ -32,7 +32,7 @@ Future<void> writeResponseData(
String
testOutputFilename
=
'integration_response_data'
,
String
?
destinationDirectory
,
})
async
{
assert
(
testOutputFilename
!=
null
);
// ignore: unnecessary_null_comparison
assert
(
testOutputFilename
!=
null
);
destinationDirectory
??=
testOutputsDirectory
;
await
fs
.
directory
(
destinationDirectory
).
create
(
recursive:
true
);
final
File
file
=
fs
.
file
(
path
.
join
(
...
...
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