diff --git a/_analysis_config/lib/analysis_options.yaml b/_analysis_config/lib/analysis_options.yaml
index 7736d8219..d888bdb60 100644
--- a/_analysis_config/lib/analysis_options.yaml
+++ b/_analysis_config/lib/analysis_options.yaml
@@ -39,6 +39,7 @@ linter:
- unnecessary_lambdas
- unnecessary_parenthesis
- unnecessary_statements
+ - use_null_aware_elements
# TODO(https://github.com/dart-lang/webdev/issues/2053): Enable commented-out rules with fixes.
dart_code_metrics:
diff --git a/_analysis_config/pubspec.yaml b/_analysis_config/pubspec.yaml
index 1ac28a4b2..d8270fcd8 100644
--- a/_analysis_config/pubspec.yaml
+++ b/_analysis_config/pubspec.yaml
@@ -7,4 +7,4 @@ environment:
sdk: ^3.10.0-0.0.dev
dependencies:
- lints: ^5.0.0
+ lints: ^6.0.0
diff --git a/dwds/CHANGELOG.md b/dwds/CHANGELOG.md
index 4252e7dfb..95c5b6553 100644
--- a/dwds/CHANGELOG.md
+++ b/dwds/CHANGELOG.md
@@ -1,3 +1,5 @@
+## 26.2.3-wip
+
## 26.2.2
- Fix issue where isolate pause events were not reported correctly when using the web socket proxy service.
diff --git a/dwds/debug_extension/tool/copy_builder.dart b/dwds/debug_extension/tool/copy_builder.dart
index 648f6e565..6dd404436 100644
--- a/dwds/debug_extension/tool/copy_builder.dart
+++ b/dwds/debug_extension/tool/copy_builder.dart
@@ -5,7 +5,7 @@
import 'package:build/build.dart';
/// Factory for the build script.
-Builder copyBuilder(_) => _CopyBuilder();
+Builder copyBuilder(BuilderOptions _) => _CopyBuilder();
class _CopyBuilder extends Builder {
@override
diff --git a/dwds/lib/src/events.dart b/dwds/lib/src/events.dart
index c7c9d166b..349879108 100644
--- a/dwds/lib/src/events.dart
+++ b/dwds/lib/src/events.dart
@@ -101,8 +101,7 @@ class DwdsEvent {
DwdsEvent.getVM() : this(DwdsEventKind.getVM, {});
- DwdsEvent.resume(String? step)
- : this(DwdsEventKind.resume, {if (step != null) 'step': step});
+ DwdsEvent.resume(String? step) : this(DwdsEventKind.resume, {'step': ?step});
DwdsEvent.getSourceReport() : this(DwdsEventKind.getSourceReport, {});
diff --git a/dwds/lib/src/readers/asset_reader.dart b/dwds/lib/src/readers/asset_reader.dart
index e85415b4f..705d3caf9 100644
--- a/dwds/lib/src/readers/asset_reader.dart
+++ b/dwds/lib/src/readers/asset_reader.dart
@@ -11,7 +11,7 @@ import 'package:package_config/package_config.dart';
abstract class AssetReader {
/// Base path of the application, for example, set up in the index file:
///
- /// ```
+ /// ```html
///
///
///
diff --git a/dwds/lib/src/version.dart b/dwds/lib/src/version.dart
index 399a03a9b..5c9bb9079 100644
--- a/dwds/lib/src/version.dart
+++ b/dwds/lib/src/version.dart
@@ -1,2 +1,2 @@
// Generated code. Do not modify.
-const packageVersion = '26.2.2';
+const packageVersion = '26.2.3-wip';
diff --git a/dwds/pubspec.yaml b/dwds/pubspec.yaml
index f34a9f07c..bf16e1171 100644
--- a/dwds/pubspec.yaml
+++ b/dwds/pubspec.yaml
@@ -1,13 +1,13 @@
name: dwds
# Every time this changes you need to run `dart run build_runner build`.
-version: 26.2.2
+version: 26.2.3-wip
description: >-
A service that proxies between the Chrome debug protocol and the Dart VM
service protocol.
repository: https://github.com/dart-lang/webdev/tree/main/dwds
environment:
- sdk: ^3.10.0-0.0.dev
+ sdk: ^3.10.0-0
dependencies:
async: ^2.9.0
diff --git a/dwds/test/common/chrome_proxy_service_common.dart b/dwds/test/common/chrome_proxy_service_common.dart
index 0c403d48d..f5b849391 100644
--- a/dwds/test/common/chrome_proxy_service_common.dart
+++ b/dwds/test/common/chrome_proxy_service_common.dart
@@ -565,7 +565,7 @@ void runTests({
expect(
isolate.libraries,
containsAll([
- _libRef('package:path/path.dart'),
+ _libRef(equals('package:path/path.dart')),
// TODO: library names change with kernel dart-lang/sdk#36736
_libRef(endsWith('main.dart')),
]),
@@ -2713,7 +2713,7 @@ void runTests({
final _isSuccess = isA();
-TypeMatcher _libRef(uriMatcher) =>
+TypeMatcher _libRef(Matcher uriMatcher) =>
isA().having((l) => l.uri, 'uri', uriMatcher);
void expectEventually(Matcher expectation) {}
diff --git a/dwds/test/debugger_test.dart b/dwds/test/debugger_test.dart
index fc78cbf55..95a9abffd 100644
--- a/dwds/test/debugger_test.dart
+++ b/dwds/test/debugger_test.dart
@@ -91,7 +91,7 @@ void main() async {
skipLists = SkipLists(root);
debugger = await Debugger.create(
webkitDebugger,
- (_, __) {},
+ (_, _) {},
locations,
skipLists,
root,
diff --git a/dwds/test/fixtures/fakes.dart b/dwds/test/fixtures/fakes.dart
index 2cd6083b2..21435bac1 100644
--- a/dwds/test/fixtures/fakes.dart
+++ b/dwds/test/fixtures/fakes.dart
@@ -212,9 +212,9 @@ class FakeWebkitDebugger implements WebkitDebugger {
ReloadConfiguration.none,
(_) async => {},
(_) async => {},
- (_, __) async => null,
- (MetadataProvider _, String __) async => '',
- (MetadataProvider _, String __) async => '',
+ (_, _) async => null,
+ (MetadataProvider _, String _) async => '',
+ (MetadataProvider _, String _) async => '',
(String _) => '',
(MetadataProvider _) async => {},
FakeAssetReader(),
diff --git a/dwds/test/instances/common/test_inspector.dart b/dwds/test/instances/common/test_inspector.dart
index 0dc201e3d..f8f867331 100644
--- a/dwds/test/instances/common/test_inspector.dart
+++ b/dwds/test/instances/common/test_inspector.dart
@@ -312,7 +312,7 @@ Matcher matchPrimitiveInstance({
.having((e) => e.kind, 'kind', kind)
.having(_getValue, 'value', value);
-Matcher matchPlainInstance({required libraryId, required String type}) =>
+Matcher matchPlainInstance({required String libraryId, required String type}) =>
isA()
.having((e) => e.kind, 'kind', InstanceKind.kPlainInstance)
.having(
@@ -321,7 +321,7 @@ Matcher matchPlainInstance({required libraryId, required String type}) =>
matchClassRef(name: type, libraryId: libraryId),
);
-Matcher matchListInstance({required dynamic type}) => isA()
+Matcher matchListInstance({required String type}) => isA()
.having((e) => e.kind, 'kind', InstanceKind.kList)
.having((e) => e.classRef, 'classRef', matchListClassRef(type));
diff --git a/dwds/test/puppeteer/extension_common.dart b/dwds/test/puppeteer/extension_common.dart
index 11b28962e..ae3f723bc 100644
--- a/dwds/test/puppeteer/extension_common.dart
+++ b/dwds/test/puppeteer/extension_common.dart
@@ -12,7 +12,7 @@ import 'package:dwds/data/extension_request.dart';
import 'package:dwds/src/servers/extension_backend.dart';
import 'package:dwds/src/utilities/server.dart';
import 'package:path/path.dart' as p;
-import 'package:puppeteer/puppeteer.dart' hide Response;
+import 'package:puppeteer/puppeteer.dart' hide Request, Response;
import 'package:shelf/shelf.dart';
import 'package:shelf_static/shelf_static.dart';
import 'package:test/test.dart';
@@ -1037,7 +1037,7 @@ Future _fakeServer({
return server;
}
-Response _fakeAuthHandler(request) {
+Response _fakeAuthHandler(Request request) {
if (request.url.path == authenticationPath) {
return Response.ok(authenticationResponse);
}
diff --git a/example/web/main.dart b/example/web/main.dart
index 4d2637c60..28a5e6224 100644
--- a/example/web/main.dart
+++ b/example/web/main.dart
@@ -12,7 +12,7 @@ import 'dart:html';
void main() {
print('Initial Print :)');
- registerExtension('ext.print', (_, __) async {
+ registerExtension('ext.print', (_, _) async {
print('Hello World !! :)');
return ServiceExtensionResponse.result(json.encode({'success': true}));
});
diff --git a/fixtures/_test/example/append_body/main.dart b/fixtures/_test/example/append_body/main.dart
index 8a89205d1..d32ad4ed2 100644
--- a/fixtures/_test/example/append_body/main.dart
+++ b/fixtures/_test/example/append_body/main.dart
@@ -28,7 +28,7 @@ void main() {
log(logMessage);
previousLog = logMessage;
- registerExtension('ext.flutter.disassemble', (_, __) async {
+ registerExtension('ext.flutter.disassemble', (_, _) async {
log('start disassemble');
await Future.delayed(const Duration(seconds: 1));
log('end disassemble');
diff --git a/fixtures/_test/example/hello_world/main.dart b/fixtures/_test/example/hello_world/main.dart
index b4918d09b..42727e1c5 100644
--- a/fixtures/_test/example/hello_world/main.dart
+++ b/fixtures/_test/example/hello_world/main.dart
@@ -99,7 +99,7 @@ void main() async {
// recognize this as an available extension.
registerExtension(
'ext.hello_world.existing',
- (_, __) => Future.value(ServiceExtensionResponse.error(0, '')),
+ (_, _) => Future.value(ServiceExtensionResponse.error(0, '')),
);
window.console.debug('Page Ready');
diff --git a/fixtures/_test_package/web/main.dart b/fixtures/_test_package/web/main.dart
index 04c7084b6..02b57348f 100644
--- a/fixtures/_test_package/web/main.dart
+++ b/fixtures/_test_package/web/main.dart
@@ -61,7 +61,7 @@ void main() async {
}
void registerUserExtension(int id) async {
- registerExtension('ext.extension$id', (_, __) async {
+ registerExtension('ext.extension$id', (_, _) async {
print('Hello World from extension$id');
return ServiceExtensionResponse.result(json.encode({'success': true}));
});
diff --git a/fixtures/_webdev_smoke/web/main.dart b/fixtures/_webdev_smoke/web/main.dart
index 8e3be2873..773781e42 100644
--- a/fixtures/_webdev_smoke/web/main.dart
+++ b/fixtures/_webdev_smoke/web/main.dart
@@ -12,7 +12,7 @@ import 'dart:html';
void main() {
print('Initial Print');
- registerExtension('ext.print', (_, __) async {
+ registerExtension('ext.print', (_, _) async {
print('Hello World');
return ServiceExtensionResponse.result(json.encode({'success': true}));
});
diff --git a/webdev/test/tls_test.dart b/webdev/test/tls_test.dart
index d70ea0ead..75e23d35a 100644
--- a/webdev/test/tls_test.dart
+++ b/webdev/test/tls_test.dart
@@ -65,8 +65,7 @@ void main() {
emitsThrough(contains('Built with build_runner')),
);
- final client = HttpClient()
- ..badCertificateCallback = (_, __, ___) => true;
+ final client = HttpClient()..badCertificateCallback = (_, _, _) => true;
try {
final request = await client.getUrl(
Uri.parse('https://localhost:$port'),
@@ -112,8 +111,7 @@ void main() {
'No non-loopback IPv4 address available, skipping hostname test.',
);
} else {
- final client = HttpClient()
- ..badCertificateCallback = (_, __, ___) => true;
+ final client = HttpClient()..badCertificateCallback = (_, _, _) => true;
try {
final request = await client.getUrl(
Uri.parse('https://${nonLoopback.address}:$port'),