Skip to content

Commit 4ea16a7

Browse files
authored
Update lints deps (#3711)
1 parent e67cdd5 commit 4ea16a7

File tree

55 files changed

+89
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+89
-22
lines changed

_test/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dev_dependencies:
1414
build_runner_core: any
1515
build_test: any
1616
build_web_compilers: any
17-
dart_flutter_team_lints: ^2.0.0
17+
dart_flutter_team_lints: ^3.1.0
1818
io: ^1.0.0
1919
path: ^1.8.0
2020
provides_builder:

_test/test/build_integration_test.dart

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

55
@TestOn('vm')
6+
library;
7+
68
import 'dart:io';
79

810
import 'package:build_runner/src/build_script_generate/build_script_generate.dart';

_test/test/dart2js_integration_test.dart

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

55
@TestOn('vm')
66
@Tags(['integration'])
7+
library;
78

89
import 'dart:async';
910
import 'dart:io';

_test/test/doctor_test.dart

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

55
@TestOn('vm')
6+
library;
7+
68
import 'package:test/test.dart';
79

810
import 'common/utils.dart';

_test/test/exception_handling_test.dart

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

55
@TestOn('vm')
6+
library;
7+
68
import 'package:test/test.dart';
79

810
import 'common/utils.dart';

_test/test/generated_script_integration_test.dart

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

55
@TestOn('vm')
6+
library;
7+
68
import 'dart:io' show File;
79

810
import 'package:test/test.dart';

_test/test/hello_world_custom_html_test.dart

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

55
@TestOn('browser')
6+
library;
7+
68
import 'dart:html';
79

810
import 'package:test/test.dart';

_test/test/hello_world_deferred_test.dart

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

55
@TestOn('browser')
6+
library;
7+
68
import 'dart:html';
79

810
import 'package:_test/app.dart';

_test/test/hello_world_test.dart

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

55
@TestOn('browser')
6+
library;
7+
68
import 'dart:html';
79

810
import 'package:_test/app.dart';

_test/test/help_test.dart

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

55
@TestOn('vm')
6+
library;
7+
68
import 'dart:async';
79

810
import 'package:test/test.dart';
@@ -53,8 +55,11 @@ Future<void> _testHelpCommand(List<String> args, {String? checkContent}) async {
5355
var result = await asyncResult;
5456
expect(result.exitCode, equals(0),
5557
reason: 'should give a successful exit code');
56-
expect(result.stderr, isEmpty,
57-
reason: 'Should output nothing on stderr',);
58+
expect(
59+
result.stderr,
60+
isEmpty,
61+
reason: 'Should output nothing on stderr',
62+
);
5863
expect(result.stdout, isNot(contains('"Unhandled exception"')),
5964
reason: 'Should not print an unhandled exception');
6065
if (checkContent != null) {

_test/test/serve_integration_test.dart

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

55
@TestOn('vm')
6+
library;
7+
68
import 'dart:convert';
79
import 'dart:io'
810
show

_test/test/sub-dir/subdir_test.dart

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

55
@TestOn('browser')
6+
library;
7+
68
import 'package:test/test.dart';
79

810
import '../hello_world_test.dart' as original;

_test/test/test_integration_test.dart

+1
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 'package:io/io.dart';
89
import 'package:path/path.dart' as p;

_test_common/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies:
2020
watcher: ^1.0.0
2121

2222
dev_dependencies:
23-
dart_flutter_team_lints: ^2.0.0
23+
dart_flutter_team_lints: ^3.1.0
2424

2525
dependency_overrides:
2626
build:

analysis/analysis_options.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,3 @@ analyzer:
1414
# Common top level directories containing generated files in any package.
1515
- "build/**"
1616
- ".dart_tool/**"
17-
18-
linter:
19-
rules:
20-
# TODO: Remove this once we can use unnamed libraries.
21-
library_annotations: false
22-
# TODO: https://github.com/google/json_serializable.dart/issues/1313
23-
use_string_in_part_of_directives: false

analysis/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ publish_to: none
55
environment:
66
sdk: ^3.4.0
77
dev_dependencies:
8-
dart_flutter_team_lints: ^2.0.0
8+
dart_flutter_team_lints: ^3.1.0

build/test/asset/id_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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
@TestOn('vm')
5+
library;
6+
57
import 'package:build/build.dart';
68
import 'package:test/test.dart';
79

build/test/builder/build_step_impl_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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
@TestOn('vm')
5+
library;
6+
57
import 'dart:async';
68
import 'dart:convert';
79

build/test/generate/run_builder_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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
@TestOn('vm')
5+
library;
6+
57
import 'dart:async';
68

79
import 'package:build/build.dart';

build/test/resource/resource_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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
@TestOn('vm')
5+
library;
6+
57
import 'dart:async';
68

79
import 'package:build/build.dart';

build_config/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616

1717
dev_dependencies:
1818
build_runner: ^2.0.0
19-
dart_flutter_team_lints: ^2.0.0
19+
dart_flutter_team_lints: ^3.1.0
2020
json_serializable: ^6.0.0
2121
term_glyph: ^1.2.0
2222
test: ^1.16.0

build_daemon/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dev_dependencies:
2525
build_runner: ^2.0.0
2626
# TODO: untangle analyzer dependency
2727
built_value_generator: ^8.1.0
28-
dart_flutter_team_lints: ^2.0.0
28+
dart_flutter_team_lints: ^3.1.0
2929
mockito: ^5.0.0
3030
test: ^1.25.5
3131
test_descriptor: ^2.0.0

build_daemon/test/daemon_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
@OnPlatform({
55
'windows': Skip('Directories cant be deleted while processes are still open')
66
})
7+
library;
8+
79
import 'dart:async';
810
import 'dart:convert';
911
import 'dart:io';

build_daemon/test/server_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
@OnPlatform({
66
'windows': Skip('Directories cant be deleted while processes are still open')
77
})
8+
library;
9+
810
import 'dart:async';
911
import 'dart:convert';
1012

build_modules/test/build_test.dart

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

55
@Tags(['presubmit-only'])
66
@OnPlatform({'windows': Skip('line endings are different')})
7+
library;
78

89
import 'dart:convert';
910
import 'dart:io';
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
// ignore: use_string_in_part_of_directives
12
part of a_imports_b_no_cycle;

build_resolvers/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424

2525
dev_dependencies:
2626
build_test: ^2.0.0
27-
dart_flutter_team_lints: ^2.0.0
27+
dart_flutter_team_lints: ^3.1.0
2828
test: ^1.16.0
2929

3030
topics:

build_runner/test/build_script_generate/build_script_generate_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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
@Timeout.factor(4)
5+
library;
6+
57
import 'package:_test_common/descriptors.dart';
68
import 'package:_test_common/sdk.dart';
79
import 'package:test/test.dart';

build_runner/test/build_script_generate/experiments_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
@Tags(['experiments'])
66
@TestOn('vm')
7+
library;
8+
79
import 'package:build_runner/build_script_generate.dart';
810
import 'package:logging/logging.dart';
911
import 'package:test/test.dart';

build_runner/test/daemon/daemon_test.dart

+1
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
@Tags(['integration'])
6+
library;
67

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

build_runner/test/entrypoint/clean_integration_test.dart

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

55
@Tags(['integration'])
6+
library;
7+
68
import 'package:_test_common/common.dart';
79
import 'package:test/test.dart';
810
import 'package:test_descriptor/test_descriptor.dart' as d;

build_runner/test/entrypoint/run_test.dart

+1
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
@Tags(['integration'])
6+
library;
67

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

build_runner/test/generate/build_integration_test.dart

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

55
@Tags(['integration'])
6+
library;
7+
68
import 'dart:async';
79
import 'dart:convert';
810
import 'dart:io';

build_runner/test/generate/run_script_test.dart

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

55
@Tags(['integration'])
6+
library;
7+
68
import 'dart:convert';
79

810
import 'package:_test_common/common.dart';

build_runner/test/generate/serve_integration_test.dart

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

55
@Tags(['integration'])
6+
library;
7+
68
import 'dart:async';
79
import 'dart:convert';
810
import 'dart:io';

build_runner/test/generate/watch_integration_test.dart

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

55
@Tags(['integration'])
6+
library;
7+
68
import 'dart:async';
79
import 'dart:convert';
810
import 'dart:io';

build_runner/test/integration_tests/build_invalidation_test.dart

+1
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
@Tags(['integration'])
6+
library;
67

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

build_runner/test/integration_tests/errors_test.dart

+1
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
@Tags(['integration'])
6+
library;
67

78
import 'package:build_test/build_test.dart';
89
import 'package:test/test.dart';

build_runner/test/integration_tests/optional_outputs_test.dart

+1
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
@Tags(['integration'])
6+
library;
67

78
import 'dart:async';
89

build_runner/test/integration_tests/symlinks_test.dart

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

55
@Tags(['integration'])
6+
library;
7+
68
import 'dart:async';
79
import 'dart:io';
810

build_runner/test/integration_tests/wrong_builder_factory_test.dart

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

55
@Tags(['integration'])
6+
library;
7+
68
import 'package:build_test/build_test.dart';
79
import 'package:io/io.dart' show ExitCode;
810
import 'package:test/test.dart';

build_runner/test/server/serve_integration_test.dart

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

55
@Tags(['integration'])
6+
library;
7+
68
import 'dart:async';
79
import 'dart:convert';
810
import 'dart:io';

build_runner_core/lib/src/generate/performance_tracker.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
@experimental
6-
library build_runner.src.generate.performance_tracker;
6+
library;
77

88
import 'dart:async';
99

build_runner_core/lib/src/generate/performance_tracker.g.dart

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

0 commit comments

Comments
 (0)