Skip to content

Commit ed28be5

Browse files
committed
clean format
1 parent 20e29eb commit ed28be5

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

analysis_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ analyzer:
99
missing_required_param: error
1010
missing_return: error
1111
todo: ignore
12+
# Library names are optional but doc comments before them are cleaner
13+
unnecessary_library_name: ignore
14+
dangling_library_doc_comments: ignore
1215

1316
linter:
1417
rules:

example/with_options/lib/main.dart

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ void main(List<String> args) {
2525
),
2626
ingressSettings: Ingress(IngressSetting.allowAll),
2727
invoker: Invoker.public(),
28-
labels: {
29-
'environment': 'test',
30-
'team': 'backend',
31-
},
28+
labels: {'environment': 'test', 'team': 'backend'},
3229
omit: Omit(false),
3330
// Runtime-only options (NOT in manifest)
3431
preserveExternalChanges: PreserveExternalChanges(true),
@@ -49,9 +46,7 @@ void main(List<String> args) {
4946
maxInstances: Instances(100),
5047
concurrency: Concurrency(80),
5148
invoker: Invoker.private(),
52-
labels: {
53-
'type': 'callable',
54-
},
49+
labels: {'type': 'callable'},
5550
// Runtime-only options (NOT in manifest)
5651
enforceAppCheck: EnforceAppCheck(true),
5752
consumeAppCheckToken: ConsumeAppCheckToken(true),
@@ -66,9 +61,7 @@ void main(List<String> args) {
6661
// Test 3: GCF Gen1 CPU option
6762
firebase.https.onRequest(
6863
name: 'httpsGen1',
69-
options: const HttpsOptions(
70-
cpu: Cpu.gcfGen1(),
71-
),
64+
options: const HttpsOptions(cpu: Cpu.gcfGen1()),
7265
(request) async => Response.ok('GCF Gen1 CPU'),
7366
);
7467

lib/src/database/event.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import '../common/cloud_event.dart';
22

3-
/// A CloudEvent that contains a DataSnapshot or a Change<DataSnapshot>.
3+
/// A CloudEvent that contains a DataSnapshot or a `Change<DataSnapshot>`.
44
///
55
/// This event type extends the base [CloudEvent] with Realtime Database-specific fields.
66
class DatabaseEvent<T extends Object?> extends CloudEvent<T> {

lib/src/firestore/event.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import '../common/cloud_event.dart';
22

3-
/// A CloudEvent that contains a DocumentSnapshot or a Change<DocumentSnapshot>.
3+
/// A CloudEvent that contains a DocumentSnapshot or a `Change<DocumentSnapshot>`.
44
///
55
/// This event type extends the base [CloudEvent] with Firestore-specific fields.
66
class FirestoreEvent<T extends Object?> extends CloudEvent<T> {

lib/src/https/callable.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class CallableRequest<T extends Object?> {
123123
);
124124
}
125125

126-
return _jsonDecoder!(decoded);
126+
return _jsonDecoder(decoded);
127127
}
128128

129129
/// Whether the client accepts streaming (SSE) responses.

test/snapshots/manifest_snapshot_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ Map<String, dynamic>? _getEndpoint(Map<String, dynamic> manifest, String name) {
833833
///
834834
/// The yaml package returns YamlMap and YamlList which aren't directly
835835
/// JSON-encodable. This function recursively converts them to regular
836-
/// Map<String, dynamic> and List<dynamic>.
836+
/// `Map<String, dynamic>` and `List<dynamic>`.
837837
dynamic _yamlToJson(dynamic value) {
838838
if (value is Map) {
839839
return Map<String, dynamic>.fromEntries(

0 commit comments

Comments
 (0)