Skip to content

Commit 4b6f029

Browse files
Bump dart_flutter_team_lints from 2.1.1 to ^3.0.0 in all packages (#2228)
* Bump dart_flutter_team_lints from 2.1.1 to 3.1.0 in /pkgs/test_core * remove unnecessary library names * update min SDK constraints to 3.2 Bumps [dart_flutter_team_lints](https://github.com/dart-lang/ecosystem/tree/main/pkgs) from 2.1.1 to 3.1.0. - [Release notes](https://github.com/dart-lang/ecosystem/releases) - [Commits](https://github.com/dart-lang/ecosystem/commits/dart_flutter_team_lints-v3.1.0/pkgs) --- updated-dependencies: - dependency-name: dart_flutter_team_lints dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jake Macdonald <[email protected]>
1 parent 84d2a2b commit 4b6f029

25 files changed

+119
-110
lines changed

.github/workflows/dart.yml

+59-59
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration_tests/regression/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: regression_tests
22
publish_to: none
33
environment:
4-
sdk: ^3.0.0
4+
sdk: ^3.2.0
55
dependencies:
66
test: any
77
dev_dependencies:
8-
dart_flutter_team_lints: ^2.1.1
8+
dart_flutter_team_lints: ^3.0.0
99
dependency_overrides:
1010
test:
1111
path: ../../pkgs/test

integration_tests/spawn_hybrid/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: spawn_hybrid
22
publish_to: none
33
environment:
4-
sdk: ^3.0.0
4+
sdk: ^3.2.0
55
dependencies:
66
async: ^2.9.0
77
path: ^1.8.2
88
stream_channel: ^2.1.0
99
dev_dependencies:
10-
dart_flutter_team_lints: ^2.0.0
10+
dart_flutter_team_lints: ^3.0.0
1111
other_package:
1212
path: other_package/
1313
test: any

integration_tests/wasm/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: wasm_tests
22
publish_to: none
33
environment:
4-
sdk: ^3.0.0
4+
sdk: ^3.2.0
55
dev_dependencies:
6-
dart_flutter_team_lints: ^2.1.1
6+
dart_flutter_team_lints: ^3.0.0
77
test: any
88
dependency_overrides:
99
test:

pkgs/checks/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.1-wip
2+
3+
- Update min SDK constraint to 3.2.0.
4+
15
## 0.3.0
26

37
- **Breaking Changes**

pkgs/checks/lib/src/checks.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,9 @@ final class Extracted<T> {
574574
}
575575

576576
Extracted<T> _fillActual(Object? actual) => _rejection == null ||
577-
_rejection!.actual.isNotEmpty
577+
_rejection.actual.isNotEmpty
578578
? this
579-
: Extracted.rejection(actual: literal(actual), which: _rejection!.which);
579+
: Extracted.rejection(actual: literal(actual), which: _rejection.which);
580580
}
581581

582582
abstract interface class _Optional<T> {
@@ -796,7 +796,7 @@ final class _TestContext<T> implements Context<T>, _ClauseDescription {
796796
_TestContext get _root {
797797
_TestContext<dynamic> current = this;
798798
while (current._parent != null) {
799-
current = current._parent!;
799+
current = current._parent;
800800
}
801801
return current;
802802
}

pkgs/checks/pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name: checks
2-
version: 0.3.0
2+
version: 0.3.1-wip
33
description: >-
44
A framework for checking values against expectations and building custom
55
expectations.
66
repository: https://github.com/dart-lang/test/tree/master/pkgs/checks
77

88
environment:
9-
sdk: ^3.0.0
9+
sdk: ^3.2.0
1010

1111
dependencies:
1212
async: ^2.8.0
1313
meta: ^1.9.0
1414
test_api: ">=0.5.0 <0.8.0"
1515

1616
dev_dependencies:
17-
dart_flutter_team_lints: ^2.0.0
17+
dart_flutter_team_lints: ^3.0.0
1818
test: ^1.21.3

pkgs/test/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 1.25.6-wip
22

33
* Point API doc links to `package:test` canonical libraries.
4+
* Update min SDK constraint to 3.2.0.
45

56
## 1.25.5
67

pkgs/test/lib/src/runner/node/socket_channel.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library node;
6+
library;
77

88
import 'dart:async';
99
import 'dart:convert';

pkgs/test/pubspec.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: >-
55
repository: https://github.com/dart-lang/test/tree/master/pkgs/test
66

77
environment:
8-
sdk: ^3.0.0
8+
sdk: ^3.2.0
99

1010
dependencies:
1111
analyzer: '>=5.12.0 <7.0.0'
@@ -34,16 +34,16 @@ dependencies:
3434
stream_channel: ^2.1.0
3535

3636
# Use an exact version until the test_api and test_core package are stable.
37-
test_api: 0.7.1
38-
test_core: 0.6.2
37+
test_api: 0.7.2
38+
test_core: 0.6.3
3939

4040
typed_data: ^1.3.0
4141
web_socket_channel: '>=2.0.0 <4.0.0'
4242
webkit_inspection_protocol: ^1.0.0
4343
yaml: ^3.0.0
4444

4545
dev_dependencies:
46-
dart_flutter_team_lints: ^2.1.1
46+
dart_flutter_team_lints: ^3.0.0
4747
fake_async: ^1.0.0
4848
glob: ^2.0.0
4949
test_descriptor: ^2.0.0

pkgs/test/tool/host.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library test.host;
6+
library;
77

88
import 'dart:async';
99
import 'dart:convert';

pkgs/test_api/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.7.2-wip
2+
3+
* Update min SDK constraint to 3.2.0.
4+
15
## 0.7.1
26

37
- Added [`@doNotSubmit`](https://pub.dev/documentation/meta/latest/meta/doNotSubmit-constant.html) to `test(solo: ...)` and `group(solo: ...)`. In

pkgs/test_api/lib/fake.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
@Deprecated('package:test_api is not intended for general use. '
1010
'Please use package:test.')
11-
library test_api.fake;
11+
library;
1212

1313
export 'src/frontend/fake.dart';

pkgs/test_api/lib/scaffolding.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/// {@canonicalFor tags.Tags}
99
/// {@canonicalFor test_on.TestOn}
1010
/// {@canonicalFor timeout.Timeout}
11-
library test_api.scaffolding;
11+
library;
1212

1313
export 'src/backend/configuration/on_platform.dart' show OnPlatform;
1414
export 'src/backend/configuration/retry.dart' show Retry;

pkgs/test_api/lib/src/backend/declarer.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class Declarer {
236236
_checkNotBuilt('group');
237237

238238
final fullTestPrefix = _prefix(name);
239-
if (_fullTestName != null && !_fullTestName!.startsWith(fullTestPrefix)) {
239+
if (_fullTestName != null && !_fullTestName.startsWith(fullTestPrefix)) {
240240
return;
241241
}
242242

@@ -348,7 +348,7 @@ class Declarer {
348348
/// If no set-up functions are declared, this returns a [Future] that
349349
/// completes immediately.
350350
Future _runSetUps() async {
351-
if (_parent != null) await _parent!._runSetUps();
351+
if (_parent != null) await _parent._runSetUps();
352352
// TODO: why does type inference not work here?
353353
await Future.forEach<Function>(_setUps, (setUp) => setUp());
354354
}

pkgs/test_api/lib/src/backend/remote_listener.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ final class RemoteListener {
261261
});
262262

263263
liveTest.onMessage.listen((message) {
264-
if (_printZone != null) _printZone!.print(message.text);
264+
if (_printZone != null) _printZone.print(message.text);
265265
channel.sink.add({
266266
'type': 'message',
267267
'message-type': message.type.name,

pkgs/test_api/lib/test_api.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@Deprecated('package:test_api is not intended for general use. '
66
'Please use package:test.')
7-
library test_api;
7+
library;
88

99
export 'hooks.dart' show TestFailure;
1010
export 'scaffolding.dart';

pkgs/test_api/pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: test_api
2-
version: 0.7.1
2+
version: 0.7.2-wip
33
description: >-
44
The user facing API for structuring Dart tests and checking expectations.
55
repository: https://github.com/dart-lang/test/tree/master/pkgs/test_api
66

77
environment:
8-
sdk: ^3.0.0
8+
sdk: ^3.2.0
99

1010
dependencies:
1111
async: ^2.5.0
@@ -20,7 +20,7 @@ dependencies:
2020

2121
dev_dependencies:
2222
analyzer: '>=2.1.0 <7.0.0'
23-
dart_flutter_team_lints: ^2.0.0
23+
dart_flutter_team_lints: ^3.0.0
2424
fake_async: ^1.2.0
2525
glob: ^2.0.0
2626
graphs: ^2.0.0

pkgs/test_core/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.3-wip
2+
3+
* Update min SDK constraint to 3.2.0.
4+
15
## 0.6.2
26

37
* Add `@doNotSubmit` to more declarations of the `solo` parameter.

pkgs/test_core/lib/backend.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@Deprecated('package:test_core is not intended for general use. '
66
'Please use package:test.')
7-
library test_core.backend;
7+
library;
88

99
export 'package:test_api/backend.dart'
1010
show Compiler, Metadata, PlatformSelector, Runtime, SuitePlatform;

pkgs/test_core/lib/src/runner/configuration.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,10 @@ class Configuration {
791791
}
792792
return config;
793793
}()) {
794-
if (_filename != null && _filename!.context.style != p.style) {
794+
if (_filename != null && _filename.context.style != p.style) {
795795
throw ArgumentError(
796796
"filename's context must match the current operating system, was "
797-
'${_filename!.context.style}.');
797+
'${_filename.context.style}.');
798798
}
799799

800800
if ((shardIndex == null) != (totalShards == null)) {
@@ -897,15 +897,15 @@ class Configuration {
897897
var foldTraceExcept = other._foldTraceExcept ?? _foldTraceExcept;
898898
if (_foldTraceOnly != null) {
899899
if (other._foldTraceExcept != null) {
900-
foldTraceOnly = _foldTraceOnly!.difference(other._foldTraceExcept!);
900+
foldTraceOnly = _foldTraceOnly.difference(other._foldTraceExcept);
901901
} else if (other._foldTraceOnly != null) {
902-
foldTraceOnly = other._foldTraceOnly!.intersection(_foldTraceOnly!);
902+
foldTraceOnly = other._foldTraceOnly.intersection(_foldTraceOnly);
903903
}
904904
} else if (_foldTraceExcept != null) {
905905
if (other._foldTraceOnly != null) {
906-
foldTraceOnly = other._foldTraceOnly!.difference(_foldTraceExcept!);
906+
foldTraceOnly = other._foldTraceOnly.difference(_foldTraceExcept);
907907
} else if (other._foldTraceExcept != null) {
908-
foldTraceExcept = other._foldTraceExcept!.union(_foldTraceExcept!);
908+
foldTraceExcept = other._foldTraceExcept.union(_foldTraceExcept);
909909
}
910910
}
911911

pkgs/test_core/lib/src/runner/suite.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ final class SuiteConfiguration {
110110
/// The set of runtimes on which to run tests.
111111
List<String> get runtimes => _runtimes == null
112112
? const ['vm']
113-
: List.unmodifiable(_runtimes!.map((runtime) => runtime.name));
113+
: List.unmodifiable(_runtimes.map((runtime) => runtime.name));
114114
final List<RuntimeSelection>? _runtimes;
115115

116116
/// Configuration for particular tags.

pkgs/test_core/lib/test_core.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@Deprecated('package:test_core is not intended for general use. '
66
'Please use package:test.')
7-
library test_core;
7+
library;
88

99
export 'package:test_api/hooks.dart' show TestFailure;
1010

pkgs/test_core/pubspec.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: test_core
2-
version: 0.6.2
2+
version: 0.6.3-wip
33
description: A basic library for writing tests and running them on the VM.
44
repository: https://github.com/dart-lang/test/tree/master/pkgs/test_core
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.2.0
88

99
dependencies:
1010
analyzer: '>=3.3.0 <7.0.0'
@@ -26,9 +26,9 @@ dependencies:
2626
stack_trace: ^1.10.0
2727
stream_channel: ^2.1.0
2828
# Use an exact version until the test_api package is stable.
29-
test_api: 0.7.1
29+
test_api: 0.7.2
3030
vm_service: ">=6.0.0 <15.0.0"
3131
yaml: ^3.0.0
3232

3333
dev_dependencies:
34-
dart_flutter_team_lints: ^2.1.1
34+
dart_flutter_team_lints: ^3.0.0

tool/ci.sh

+7-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)