Skip to content

Commit 23567be

Browse files
authored
Fix lints, update all packages to latest lints (#587)
1 parent 56282a4 commit 23567be

File tree

10 files changed

+19
-34
lines changed

10 files changed

+19
-34
lines changed

.github/workflows/oauth2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
sdk: [3.0.0, dev]
32+
sdk: [dev]
3333
steps:
3434
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
3535
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
@@ -62,7 +62,7 @@ jobs:
6262
matrix:
6363
# Add macos-latest and/or windows-latest if relevant for this package.
6464
os: [ubuntu-latest]
65-
sdk: [stable, beta]
65+
sdk: [3.4, dev]
6666
steps:
6767
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
6868
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672

pkgs/cli_config/lib/src/config.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Config {
8282

8383
/// Constructs a config by parsing the three sources.
8484
///
85-
/// If provided, [commandLineDefines] must be a list of '<key>=<value>'.
85+
/// If provided, [commandLineDefines] must be a list of `<key>=<value>`.
8686
///
8787
/// If provided, [workingDirectory] is used to resolves paths inside
8888
/// [commandLineDefines].
@@ -120,7 +120,7 @@ class Config {
120120

121121
/// Constructs a config by parsing the three sources.
122122
///
123-
/// If provided, [commandLineDefines] must be a list of '<key>=<value>'.
123+
/// If provided, [commandLineDefines] must be a list of `<key>=<value>`.
124124
///
125125
/// If provided, [workingDirectory] is used to resolves paths inside
126126
/// [commandLineDefines].

pkgs/extension_discovery/lib/extension_discovery.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ final class Extension {
6060
/// * [bool] (`true` or `false`),
6161
/// * [String],
6262
/// * [num] ([int] or [double]),
63-
/// * [List<Object?>], and,
64-
/// * [Map<String, Object?>].
63+
/// * `List<Object?>`, and,
64+
/// * `Map<String, Object?>`.
6565
final Map<String, Object?> config;
6666

6767
Extension._({

pkgs/extension_discovery/lib/src/yaml_config_format.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ import 'package:yaml/yaml.dart'
3838
/// * [bool] (`true` or `false`),
3939
/// * [String],
4040
/// * [num] ([int] or [double]),
41-
/// * [List<Object?>], and,
42-
/// * [Map<String, Object?>].
41+
/// * `List<Object?>`, and,
42+
/// * `Map<String, Object?>`.
4343
Map<String, Object?> parseYamlFromConfigFile(String yamlString) {
4444
final visited = <YamlNode>{};
4545
Object? toPlainType(YamlNode n) {

pkgs/mime/lib/src/bound_multipart_stream.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ class BoundMultipartStream {
348348
default:
349349
// Should be unreachable.
350350
assert(false);
351-
break;
352351
}
353352

354353
// Move to the next byte.

pkgs/oauth2/CHANGELOG.md

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

37
* Require `package:http` v1.0.0

pkgs/oauth2/analysis_options.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,14 @@ analyzer:
1010

1111
linter:
1212
rules:
13-
- always_declare_return_types
14-
- avoid_catching_errors
15-
- avoid_dynamic_calls
1613
- avoid_private_typedef_functions
1714
- avoid_unused_constructor_parameters
1815
- avoid_void_async
1916
- cancel_subscriptions
20-
- directives_ordering
2117
- literal_only_boolean_expressions
2218
- no_adjacent_strings_in_list
2319
- no_runtimeType_toString
24-
- omit_local_variable_types
25-
- only_throw_errors
2620
- package_api_docs
27-
- prefer_asserts_in_initializer_lists
28-
- prefer_const_constructors
2921
- prefer_const_declarations
30-
- prefer_relative_imports
31-
- prefer_single_quotes
32-
- sort_pub_dependencies
33-
- test_types_in_equals
34-
- throw_in_finally
35-
- type_annotate_public_apis
36-
- unawaited_futures
3722
- unnecessary_await_in_return
38-
- unnecessary_lambdas
39-
- unnecessary_parenthesis
40-
- unnecessary_statements
41-
- use_is_even_rather_than_modulo
4223
- use_string_buffers
43-
- use_super_parameters

pkgs/oauth2/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: oauth2
2-
version: 2.0.3
2+
version: 2.0.4-wip
33
description: >-
44
A client library for authenticating with a remote service via OAuth2 on
55
behalf of a user, and making authorized HTTP requests with the user's
66
OAuth2 credentials.
77
repository: https://github.com/dart-lang/tools/tree/main/pkgs/oauth2
88

99
environment:
10-
sdk: ^3.0.0
10+
sdk: ^3.4.0
1111

1212
dependencies:
1313
collection: ^1.15.0
@@ -16,5 +16,5 @@ dependencies:
1616
http_parser: ^4.0.0
1717

1818
dev_dependencies:
19-
dart_flutter_team_lints: ^2.0.0
19+
dart_flutter_team_lints: ^3.0.0
2020
test: ^1.16.0

pkgs/source_map_stack_trace/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 2.1.3-wip
2+
13
## 2.1.2
24

35
* Require Dart 3.3.0

pkgs/source_map_stack_trace/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: source_map_stack_trace
2-
version: 2.1.2
2+
version: 2.1.3-wip
33
description: A package for applying source maps to stack traces.
44
repository: https://github.com/dart-lang/tools/tree/main/pkgs/source_map_stack_trace
55

@@ -12,6 +12,6 @@ dependencies:
1212
stack_trace: ^1.10.0
1313

1414
dev_dependencies:
15-
dart_flutter_team_lints: ^2.0.0
15+
dart_flutter_team_lints: ^3.0.0
1616
source_span: ^1.8.0
1717
test: ^1.16.0

0 commit comments

Comments
 (0)