Skip to content

Commit 04ba68e

Browse files
mosuemkevmoo
andauthored
Rev package:lints (grpc#740)
* Rev package:lints * Add changelog * Run CI on 3.5.0 * Test with 3.2.0 * Update .github/workflows/dart.yml Co-authored-by: Kevin Moore <[email protected]> * Update .github/workflows/dart.yml Co-authored-by: Kevin Moore <[email protected]> --------- Co-authored-by: Kevin Moore <[email protected]>
1 parent f8bbdce commit 04ba68e

File tree

5 files changed

+18
-14
lines changed

5 files changed

+18
-14
lines changed

.github/workflows/dart.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
sdk: [3.2.0, dev]
19+
sdk: [3.5, dev]
2020
steps:
2121
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
2222
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
@@ -60,7 +60,7 @@ jobs:
6060
strategy:
6161
matrix:
6262
os: [ubuntu-latest, macos-latest, windows-latest]
63-
sdk: [3.2.0, dev]
63+
sdk: [3.5, dev]
6464
platform: [vm, chrome]
6565
exclude:
6666
# We only run Chrome tests on Linux. No need to run them

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Small fixes, such as ports in testing and enabling `timeline_test.dart`.
55
* When the keep alive manager runs into a timeout, it will finish the transport instead of closing
66
the connection, as defined in the gRPC spec.
7+
* Upgrade to `package:lints` version 5.0.0 and Dart SDK version 3.5.0.
78

89
## 4.0.1
910

analysis_options.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ analyzer:
99

1010
linter:
1111
rules:
12-
- always_declare_return_types
13-
- cancel_subscriptions
14-
- close_sinks
15-
- directives_ordering
16-
- omit_local_variable_types
17-
- prefer_final_locals
18-
- prefer_single_quotes
19-
- test_types_in_equals
20-
- prefer_relative_imports
12+
#true
13+
always_declare_return_types: true
14+
cancel_subscriptions: true
15+
close_sinks: true
16+
directives_ordering: true
17+
omit_local_variable_types: true
18+
prefer_final_locals: true
19+
prefer_single_quotes: true
20+
test_types_in_equals: true
21+
prefer_relative_imports: true
22+
#false
23+
unintended_html_in_doc_comment: false

lib/service_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/// Exports the minimum api to define server and client stubs.
1717
///
1818
/// Mainly intended to be imported by generated code.
19-
library service_api;
19+
library;
2020

2121
export 'src/client/call.dart' show CallOptions, MetadataProvider;
2222
export 'src/client/channel.dart' show ClientChannel;

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 4.0.2-wip
55
repository: https://github.com/grpc/grpc-dart
66

77
environment:
8-
sdk: ^3.2.0
8+
sdk: ^3.5.0
99

1010
dependencies:
1111
async: ^2.5.0
@@ -21,7 +21,7 @@ dependencies:
2121
dev_dependencies:
2222
build_runner: ^2.0.0
2323
build_test: ^2.0.0
24-
lints: ^4.0.0
24+
lints: ^5.0.0
2525
mockito: ^5.0.0
2626
path: ^1.8.0
2727
test: ^1.16.0

0 commit comments

Comments
 (0)