Skip to content

Commit 2b5b683

Browse files
authored
move analysis_options.yaml into packages (#460)
* move analysis_options.yaml into packages * regenerate mono_repo files
1 parent 657ebd3 commit 2b5b683

File tree

20 files changed

+28
-12
lines changed

20 files changed

+28
-12
lines changed

.github/workflows/dart.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Created with package:mono_repo v6.6.1
1+
# Created with package:mono_repo v6.6.2
22
name: Dart CI
33
on:
44
push:
@@ -36,7 +36,7 @@ jobs:
3636
name: Checkout repository
3737
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3838
- name: mono_repo self validate
39-
run: dart pub global activate mono_repo 6.6.1
39+
run: dart pub global activate mono_repo 6.6.2
4040
- name: mono_repo self validate
4141
run: dart pub global run mono_repo generate --validate
4242
job_002:

pkgs/shelf/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280

281281
## 0.6.1+2
282282

283-
* `logRequests` outputs a better message a request has a query string.
283+
* `logRequests` outputs a better message if a request has a query string.
284284

285285
## 0.6.1+1
286286

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# https://dart.dev/guides/language/analysis-options
2+
23
include: package:dart_flutter_team_lints/analysis_options.yaml
34

45
analyzer:
56
language:
6-
strict-casts: true
7-
strict-inference: true
87
strict-raw-types: true
9-
errors:
10-
comment_references: ignore # too many false positives
118

129
linter:
1310
rules:
@@ -17,5 +14,4 @@ linter:
1714
- missing_whitespace_between_adjacent_strings
1815
- no_adjacent_strings_in_list
1916
- no_runtimeType_toString
20-
- package_api_docs
2117
- unnecessary_await_in_return

pkgs/shelf/lib/src/body.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import 'dart:async';
66
import 'dart:convert';
77

8+
import 'message.dart';
9+
810
/// The body of a request or response.
911
///
1012
/// This tracks whether the body has been read. It's separate from [Message]

pkgs/shelf/lib/src/hijack_exception.dart

Lines changed: 2 additions & 0 deletions
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

5+
import 'request.dart';
6+
57
/// An exception used to indicate that a request has been hijacked.
68
///
79
/// This shouldn't be captured by any code other than the Shelf adapter that

pkgs/shelf/lib/src/message.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import 'package:http_parser/http_parser.dart';
1010

1111
import 'body.dart';
1212
import 'headers.dart';
13+
import 'middleware/logger.dart';
14+
import 'request.dart';
15+
import 'response.dart';
1316
import 'shelf_unmodifiable_map.dart';
1417
import 'util.dart';
1518

@@ -171,7 +174,7 @@ abstract class Message {
171174
{Map<String, String> headers, Map<String, Object> context, Object? body});
172175
}
173176

174-
/// Adds information about [encoding] to [headers].
177+
/// Adds information about encoding to [headers].
175178
///
176179
/// Returns a new map without modifying [headers].
177180
Map<String, List<String>> _adjustHeaders(

pkgs/shelf/lib/src/middleware_extensions.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'handler.dart';
22
import 'middleware.dart';
3+
import 'pipeline.dart';
34

45
/// Extensions on [Middleware] to aid in composing [Middleware] and [Handler]s.
56
///

pkgs/shelf/lib/src/pipeline.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import 'handler.dart';
66
import 'middleware.dart';
7+
import 'request.dart';
78

89
/// A helper that makes it easy to compose a set of [Middleware] and a
910
/// [Handler].

pkgs/shelf/lib/src/response.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import 'dart:convert';
66

77
import 'package:http_parser/http_parser.dart';
88

9+
import 'handler.dart';
910
import 'message.dart';
1011
import 'util.dart';
1112

pkgs/shelf/lib/src/server.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import 'handler.dart';
2020
/// code to a single server implementation.
2121
///
2222
/// There are two built-in implementations of this interface. You can create a
23-
/// server backed by `dart:io` using [IOServer], or you can create a server
24-
/// that's backed by a normal [Handler] using [ServerHandler].
23+
/// server backed by `dart:io` using `IOServer`, or you can create a server
24+
/// that's backed by a normal [Handler] using `ServerHandler`.
2525
///
2626
/// Implementations of this interface are responsible for ensuring that the
2727
/// members work as documented.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:dart_flutter_team_lints/analysis_options.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:dart_flutter_team_lints/analysis_options.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:dart_flutter_team_lints/analysis_options.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:dart_flutter_team_lints/analysis_options.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:dart_flutter_team_lints/analysis_options.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:dart_flutter_team_lints/analysis_options.yaml

pkgs/shelf_test_handler/lib/src/expectation.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
import 'package:shelf/shelf.dart';
66

7+
import 'handler.dart';
8+
79
/// A single expectation for an HTTP request sent to a [ShelfTestHandler].
810
class Expectation {
911
/// The expected request method, or `null` if this allows any requests.

pkgs/shelf_test_handler/lib/src/server.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import 'dart:io';
77

88
import 'package:http_multi_server/http_multi_server.dart';
99
import 'package:shelf/shelf_io.dart';
10+
import 'package:test/test.dart';
1011

1112
import 'handler.dart';
1213

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:dart_flutter_team_lints/analysis_options.yaml

tool/ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Created with package:mono_repo v6.6.1
2+
# Created with package:mono_repo v6.6.2
33

44
# Support built in commands on windows out of the box.
55

0 commit comments

Comments
 (0)