Skip to content

Commit 4f32b9b

Browse files
authored
Bump and fix latest lints, require Dart 3.1 (dart-archive/test_descriptor#60)
1 parent 80e218d commit 4f32b9b

File tree

9 files changed

+13
-32
lines changed

9 files changed

+13
-32
lines changed

pkgs/test_descriptor/.github/workflows/test-package.yml

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

pkgs/test_descriptor/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## 2.0.2-dev
1+
## 2.0.2-wip
2+
3+
* Require Dart 3.1 or later.
24

35
## 2.0.1
46

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# https://dart.dev/guides/language/analysis-options
2-
include: package:lints/recommended.yaml
2+
include: package:dart_flutter_team_lints/analysis_options.yaml
33

44
analyzer:
55
language:
@@ -9,49 +9,26 @@ analyzer:
99

1010
linter:
1111
rules:
12-
- always_declare_return_types
1312
- avoid_bool_literals_in_conditional_expressions
14-
- avoid_catching_errors
1513
- avoid_classes_with_only_static_members
16-
- avoid_dynamic_calls
1714
- avoid_private_typedef_functions
1815
- avoid_redundant_argument_values
19-
- avoid_returning_null
20-
- avoid_returning_null_for_future
2116
- avoid_returning_this
2217
- avoid_unused_constructor_parameters
2318
- avoid_void_async
2419
- cancel_subscriptions
25-
- comment_references
26-
- directives_ordering
2720
- join_return_with_assignment
28-
- lines_longer_than_80_chars
2921
- literal_only_boolean_expressions
3022
- missing_whitespace_between_adjacent_strings
3123
- no_adjacent_strings_in_list
3224
- no_runtimeType_toString
33-
- omit_local_variable_types
34-
- only_throw_errors
3525
- package_api_docs
36-
- prefer_asserts_in_initializer_lists
37-
- prefer_const_constructors
3826
- prefer_const_declarations
3927
- prefer_expression_function_bodies
4028
- prefer_final_locals
41-
- prefer_relative_imports
42-
- prefer_single_quotes
43-
- sort_pub_dependencies
44-
- test_types_in_equals
45-
- throw_in_finally
46-
- type_annotate_public_apis
47-
- unawaited_futures
4829
- unnecessary_await_in_return
49-
- unnecessary_lambdas
50-
- unnecessary_parenthesis
5130
- unnecessary_raw_strings
52-
- unnecessary_statements
5331
- use_if_null_to_convert_nulls_to_bools
5432
- use_raw_strings
5533
- use_string_buffers
56-
- use_super_parameters
5734
- require_trailing_commas

pkgs/test_descriptor/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: test_descriptor
2-
version: 2.0.2-dev
2+
version: 2.0.2-wip
33
description: An API for defining and verifying files and directory structures.
44
repository: https://github.com/dart-lang/test_descriptor
55

66
environment:
7-
sdk: '>=2.17.0 <3.0.0'
7+
sdk: ^3.1.0
88

99
dependencies:
1010
async: ^2.5.0
@@ -14,4 +14,4 @@ dependencies:
1414
test: ^1.16.0
1515

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

pkgs/test_descriptor/test/directory_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@TestOn('vm')
6+
library;
67

78
import 'dart:async';
89
import 'dart:convert';

pkgs/test_descriptor/test/file_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@TestOn('vm')
6+
library;
67

78
import 'dart:convert';
89
import 'dart:io';

pkgs/test_descriptor/test/nothing_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@TestOn('vm')
6+
library;
67

78
import 'dart:io';
89

910
import 'package:path/path.dart' as p;
1011
import 'package:test/test.dart';
11-
1212
import 'package:test_descriptor/test_descriptor.dart' as d;
1313

1414
import 'utils.dart';

pkgs/test_descriptor/test/pattern_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@TestOn('vm')
6+
library;
67

78
import 'package:test/test.dart';
8-
99
import 'package:test_descriptor/test_descriptor.dart' as d;
1010

1111
import 'utils.dart';

pkgs/test_descriptor/test/sandbox_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@TestOn('vm')
6+
library;
67

78
import 'dart:io';
89

910
import 'package:path/path.dart' as p;
1011
import 'package:test/test.dart';
11-
1212
import 'package:test_descriptor/test_descriptor.dart' as d;
1313

1414
void main() {

0 commit comments

Comments
 (0)