Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Commit d68de5b

Browse files
authored
Update lints, require Dart ^3.1 (#52)
1 parent c21e40d commit d68de5b

File tree

5 files changed

+11
-19
lines changed

5 files changed

+11
-19
lines changed

.github/workflows/test-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
matrix:
4848
# Add macos-latest and/or windows-latest if relevant for this package.
4949
os: [ubuntu-latest]
50-
sdk: [2.17.0, dev]
50+
sdk: [3.1, dev]
5151
steps:
5252
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
5353
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.1.1-wip
2+
3+
* Require Dart 3.1.
4+
15
## 2.1.0
26

37
- Remove the expectation that the process exits during the normal test body.

analysis_options.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
include: package:lints/recommended.yaml
1+
# https://dart.dev/tools/analysis#the-analysis-options-file
2+
include: package:dart_flutter_team_lints/analysis_options.yaml
23

34
analyzer:
45
language:
@@ -8,23 +9,11 @@ analyzer:
89

910
linter:
1011
rules:
11-
- always_declare_return_types
1212
- avoid_unused_constructor_parameters
1313
- cancel_subscriptions
14-
- directives_ordering
15-
- lines_longer_than_80_chars
1614
- literal_only_boolean_expressions
1715
- missing_whitespace_between_adjacent_strings
1816
- no_adjacent_strings_in_list
1917
- no_runtimeType_toString
20-
- omit_local_variable_types
2118
- package_api_docs
22-
- prefer_relative_imports
23-
- prefer_single_quotes
24-
- test_types_in_equals
25-
- throw_in_finally
26-
- type_annotate_public_apis
27-
- unawaited_futures
2819
- unnecessary_await_in_return
29-
- unnecessary_lambdas
30-
- use_super_parameters

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: test_process
2-
version: 2.1.0
2+
version: 2.1.1-wip
33
description:
44
"Test processes: starting; validating stdout and stderr; checking exit code"
55
repository: https://github.com/dart-lang/test_process
66

77
environment:
8-
sdk: ">=2.17.0 <3.0.0"
8+
sdk: ^3.1.0
99

1010
dependencies:
1111
async: ^2.5.0
@@ -14,5 +14,5 @@ dependencies:
1414
test: ^1.16.0
1515

1616
dev_dependencies:
17-
lints: ^2.0.0
17+
dart_flutter_team_lints: ^2.0.0
1818
test_descriptor: ^2.0.0

test/test_process_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import 'dart:io';
66

77
import 'package:path/path.dart' as p;
88
import 'package:test/test.dart';
9-
109
import 'package:test_descriptor/test_descriptor.dart' as d;
1110
import 'package:test_process/test_process.dart';
1211

13-
final throwsTestFailure = throwsA(TypeMatcher<TestFailure>());
12+
final throwsTestFailure = throwsA(isA<TestFailure>());
1413

1514
void main() {
1615
group('shouldExit()', () {

0 commit comments

Comments
 (0)