Skip to content

Commit 33b8c66

Browse files
authored
Update and fix lints, require Dart 3.0 (dart-archive/browser_launcher#53)
1 parent c908ef3 commit 33b8c66

File tree

5 files changed

+9
-28
lines changed

5 files changed

+9
-28
lines changed

pkgs/browser_launcher/.github/workflows/dart.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
sdk: [2.17.0, dev]
21+
sdk: [3.0, dev]
2222
steps:
2323
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
2424
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d

pkgs/browser_launcher/CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## 1.1.2-dev
1+
## 1.1.2-wip
22

3-
- Require Dart 2.17
3+
- Require Dart 3.0
44
- Log errors from chrome
55
- Allow tests to detect headless-only environment (for CI).
66

+1-22
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,47 +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
1916
- avoid_returning_null_for_future
2017
- avoid_returning_this
2118
- avoid_unused_constructor_parameters
2219
- avoid_void_async
2320
- cancel_subscriptions
24-
- comment_references
25-
- directives_ordering
2621
- join_return_with_assignment
27-
- lines_longer_than_80_chars
2822
- literal_only_boolean_expressions
2923
- missing_whitespace_between_adjacent_strings
3024
- no_adjacent_strings_in_list
3125
- no_runtimeType_toString
32-
- omit_local_variable_types
33-
- only_throw_errors
3426
- package_api_docs
35-
- prefer_asserts_in_initializer_lists
36-
- prefer_const_constructors
3727
- prefer_const_declarations
3828
- prefer_expression_function_bodies
3929
- prefer_final_locals
40-
- prefer_relative_imports
41-
- prefer_single_quotes
4230
- require_trailing_commas
43-
- sort_pub_dependencies
44-
- test_types_in_equals
45-
- throw_in_finally
46-
- type_annotate_public_apis
47-
- unawaited_futures
48-
- unnecessary_lambdas
49-
- unnecessary_parenthesis
5031
- unnecessary_raw_strings
51-
- unnecessary_statements
5232
- use_if_null_to_convert_nulls_to_bools
5333
- use_raw_strings
5434
- use_string_buffers
55-
- use_super_parameters

pkgs/browser_launcher/pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: browser_launcher
2-
version: 1.1.2-dev
2+
version: 1.1.2-wip
33
description: Provides a standardized way to launch web browsers for testing and tools.
44
repository: https://github.com/dart-lang/browser_launcher
55

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

99
dependencies:
1010
logging: ^1.0.0
1111
path: ^1.8.0
1212
webkit_inspection_protocol: ^1.0.0
1313

1414
dev_dependencies:
15-
lints: ^2.0.0
15+
dart_flutter_team_lints: ^2.0.0
1616
test: ^1.17.3

pkgs/browser_launcher/test/chrome_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
@OnPlatform({'windows': Skip('appveyor is not setup to install Chrome')})
6+
library;
7+
68
import 'dart:async';
79
import 'dart:io';
810

0 commit comments

Comments
 (0)