Skip to content

Commit c988e32

Browse files
pqCommit Queue
authored andcommitted
[cq] remove unnecessary ignores
See: #35234 Change-Id: I4563df48df9d71332b3de6fabea9176e199c1ad5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404202 Reviewed-by: Brian Wilkerson <[email protected]> Auto-Submit: Phil Quitslund <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent 106d3a6 commit c988e32

File tree

15 files changed

+7
-27
lines changed

15 files changed

+7
-27
lines changed

pkg/analysis_server/lib/src/services/correction/fix/data_driven/code_fragment_parser.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import 'package:analyzer/error/listener.dart';
1111
import 'package:analyzer/src/utilities/extensions/string.dart';
1212

1313
// Several "report" functions intentionally return a `Null`-typed value.
14-
// ignore_for_file: prefer_void_to_null
1514

1615
/// A parser for the textual representation of a code fragment.
1716
class CodeFragmentParser {

pkg/analysis_server/lib/src/services/correction/fix/data_driven/transform_set_parser.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import 'package:collection/collection.dart';
2727
import 'package:yaml/yaml.dart';
2828

2929
// Several "report" functions intentionally return a `Null`-typed value.
30-
// ignore_for_file: prefer_void_to_null
3130

3231
/// Information used to report errors when translating a node.
3332
class ErrorContext {

pkg/analysis_server/test/lsp/flutter_outline_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class FlutterOutlineNonFlutterProjectTest
3030
// Wait up to 1sec to ensure no error/log notifications were sent back.
3131
var didTimeout = false;
3232
var outlineNotification = waitForFlutterOutline(mainFileUri)
33-
// ignore: unnecessary_cast
3433
.then((outline) => outline as FlutterOutline?)
3534
.timeout(
3635
const Duration(seconds: 1),

pkg/analysis_server/test/lsp/server_abstract.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,6 @@ mixin LspAnalysisServerTestMixin on LspRequestHelpersMixin, LspEditHelpersMixin
15741574

15751575
// This is the signature expected for LSP.
15761576
// https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#:~:text=Response%3A-,result%3A%20null,-error%3A%20code%20and
1577-
// ignore: prefer_void_to_null
15781577
Future<Null> sendShutdown() {
15791578
var request = makeRequest(Method.shutdown, null);
15801579
return expectSuccessfulResponseTo(request, (result) => result as Null);

pkg/analysis_server_plugin/test/src/plugin_server_error_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ class _ThrowsAsyncErrorVisitor extends SimpleAstVisitor<void> {
232232
void visitBooleanLiteral(BooleanLiteral node) {
233233
// Raise an async error that can only be caught by an error zone's `onError`
234234
// handler.
235-
// ignore: unawaited_futures
236235
Future<void>.error(StateError('A message.'));
237236
}
238237
}

pkg/analyzer/lib/src/generated/testing/test_type_provider.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// ignore_for_file: analyzer_use_new_elements
6-
75
import 'package:analyzer/source/source.dart';
86
import 'package:analyzer/src/dart/analysis/session.dart';
97
import 'package:analyzer/src/dart/element/class_hierarchy.dart';

pkg/analyzer/lib/src/summary2/kernel_compilation_service.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,9 @@ class KernelCompilationService {
138138
if (instance != null) {
139139
_currentInstance = null;
140140
// We don't expect any answer, the process will stop.
141-
// ignore: unawaited_futures
142141
instance.requestChannel.sendRequest<void>('exit', {});
143142
instance.socket.destroy();
144143
// This socket is bound to a fresh port, we don't need it.
145-
// ignore: unawaited_futures
146144
instance.serverSocket.close();
147145
instance.process.kill();
148146
}

pkg/analyzer/lib/src/summary2/macro.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ class KernelBundleMacroExecutor extends BundleMacroExecutor {
133133

134134
Uri get _kernelUri {
135135
return _kernelUriCached ??=
136-
// ignore: avoid_dynamic_calls
137136
(Isolate.current as dynamic).createUriForKernelBlob(kernelBytes) as Uri;
138137
}
139138

@@ -142,7 +141,6 @@ class KernelBundleMacroExecutor extends BundleMacroExecutor {
142141
support.executor.unregisterExecutorFactory(_executorFactoryToken);
143142
var kernelUriCached = _kernelUriCached;
144143
if (kernelUriCached != null) {
145-
// ignore: avoid_dynamic_calls
146144
(Isolate.current as dynamic).unregisterKernelBlobUri(kernelUriCached);
147145
_kernelUriCached = null;
148146
}

pkg/analyzer_plugin/test/src/utilities/change_builder/change_builder_dart_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// ignore_for_file: camel_case_types
6-
75
import 'package:analyzer/dart/analysis/results.dart';
86
import 'package:analyzer/dart/ast/ast.dart';
97
import 'package:analyzer/dart/element/element2.dart';

pkg/linter/lib/src/analyzer.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// ignore_for_file: implementation_imports
6-
75
export 'package:analyzer/dart/element/type_system.dart';
86
export 'package:analyzer/source/line_info.dart';
97
export 'package:analyzer/src/dart/ast/token.dart';

0 commit comments

Comments
 (0)