Skip to content

Commit dfa6c5f

Browse files
pqCommit Bot
authored and
Commit Bot
committed
update package:lints dep to 2.0.0
See: https://github.com/dart-lang/lints/issues/73. Change-Id: I553ef8d9226c1c7d43c9594160a115a1abf043c3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236841 Reviewed-by: Devon Carew <[email protected]> Reviewed-by: Michael Thomsen <[email protected]> Reviewed-by: Nate Bosch <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent 42dedb5 commit dfa6c5f

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

pkg/dartdev/lib/src/templates/console.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ environment:
4848
# path: ^1.8.0
4949
5050
dev_dependencies:
51-
lints: ^1.0.0
51+
lints: ^2.0.0
5252
test: ^1.16.0
5353
''';
5454

pkg/dartdev/lib/src/templates/console_simple.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ environment:
4646
# path: ^1.8.0
4747
4848
dev_dependencies:
49-
lints: ^1.0.0
49+
lints: ^2.0.0
5050
''';
5151

5252
final String _readme = '''

pkg/dartdev/lib/src/templates/package.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ environment:
6565
# path: ^1.8.0
6666
6767
dev_dependencies:
68-
lints: ^1.0.0
68+
lints: ^2.0.0
6969
test: ^1.16.0
7070
''';
7171

pkg/dartdev/lib/src/templates/server_shelf.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dependencies:
5454
5555
dev_dependencies:
5656
http: ^0.13.0
57-
lints: ^1.0.0
57+
lints: ^2.0.0
5858
test: ^1.15.0
5959
''';
6060

@@ -136,11 +136,11 @@ void main(List<String> args) async {
136136
final ip = InternetAddress.anyIPv4;
137137
138138
// Configure a pipeline that logs requests.
139-
final _handler = Pipeline().addMiddleware(logRequests()).addHandler(_router);
139+
final handler = Pipeline().addMiddleware(logRequests()).addHandler(_router);
140140
141141
// For running in containers, we respect the PORT environment variable.
142142
final port = int.parse(Platform.environment['PORT'] ?? '8080');
143-
final server = await serve(_handler, ip, port);
143+
final server = await serve(handler, ip, port);
144144
print('Server listening on port ${server.port}');
145145
}
146146
''';
@@ -205,19 +205,19 @@ void main() {
205205
tearDown(() => p.kill());
206206
207207
test('Root', () async {
208-
final response = await get(Uri.parse(host + '/'));
208+
final response = await get(Uri.parse('$host/'));
209209
expect(response.statusCode, 200);
210210
expect(response.body, 'Hello, World!\n');
211211
});
212212
213213
test('Echo', () async {
214-
final response = await get(Uri.parse(host + '/echo/hello'));
214+
final response = await get(Uri.parse('$host/echo/hello'));
215215
expect(response.statusCode, 200);
216216
expect(response.body, 'hello\n');
217217
});
218218
219219
test('404', () async {
220-
final response = await get(Uri.parse(host + '/foobar'));
220+
final response = await get(Uri.parse('$host/foobar'));
221221
expect(response.statusCode, 404);
222222
});
223223
}

pkg/dartdev/lib/src/templates/web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ environment:
5454
dev_dependencies:
5555
build_runner: ^2.1.4
5656
build_web_compilers: ^3.2.1
57-
lints: ^1.0.0
57+
lints: ^2.0.0
5858
''';
5959

6060
final String _readme = '''

0 commit comments

Comments
 (0)