Skip to content

Commit c12f1bc

Browse files
authored
style: Cleanup library directives (#16671)
* style: Cleanup library directives * drop some more library directives * make CI happy
1 parent 9c58953 commit c12f1bc

109 files changed

Lines changed: 101 additions & 150 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

all_lint_rules.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ linter:
164164
- unnecessary_final
165165
- unnecessary_getters_setters
166166
- unnecessary_lambdas
167+
- unnecessary_library_directive
168+
- unnecessary_library_name
167169
- unnecessary_new
168170
- unnecessary_null_aware_assignments
169171
- unnecessary_null_checks
@@ -193,4 +195,4 @@ linter:
193195
- use_test_throws_matchers
194196
- use_to_and_as_if_applicable
195197
- valid_regexps
196-
- void_checks
198+
- void_checks

packages/cloud_firestore/cloud_firestore/lib/cloud_firestore.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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-
library cloud_firestore;
6-
75
import 'dart:convert';
86
// TODO(Lyokone): remove once we bump Flutter SDK min version to 3.3
97
// ignore: unnecessary_import

packages/cloud_firestore/cloud_firestore/lib/src/aggregate_query.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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-
part of cloud_firestore;
5+
part of '../cloud_firestore.dart';
66

77
/// [AggregateQuery] represents the data at a particular location for retrieving metadata
88
/// without retrieving the actual documents.

packages/cloud_firestore/cloud_firestore/lib/src/aggregate_query_snapshot.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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-
part of cloud_firestore;
5+
part of '../cloud_firestore.dart';
66

77
/// [AggregateQuerySnapshot] represents a response to an [AggregateQuery] request.
88
class AggregateQuerySnapshot {

packages/cloud_firestore/cloud_firestore/lib/src/collection_reference.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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-
part of cloud_firestore;
5+
part of '../cloud_firestore.dart';
66

77
@immutable
88
// `extends Object?` so that type inference defaults to `Object?` instead of `dynamic`

packages/cloud_firestore/cloud_firestore/lib/src/document_change.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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-
part of cloud_firestore;
5+
part of '../cloud_firestore.dart';
66

77
/// A [DocumentChange] represents a change to the documents matching a query.
88
///

packages/cloud_firestore/cloud_firestore/lib/src/document_reference.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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-
part of cloud_firestore;
5+
part of '../cloud_firestore.dart';
66

77
/// A [DocumentReference] refers to a document location in a [FirebaseFirestore] database
88
/// and can be used to write, read, or listen to the location.

packages/cloud_firestore/cloud_firestore/lib/src/document_snapshot.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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-
part of cloud_firestore;
5+
part of '../cloud_firestore.dart';
66

77
typedef FromFirestore<T> = T Function(
88
DocumentSnapshot<Map<String, dynamic>> snapshot,

packages/cloud_firestore/cloud_firestore/lib/src/field_value.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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-
part of cloud_firestore;
5+
part of '../cloud_firestore.dart';
66

77
/// Sentinel values that can be used when writing document fields with set() or
88
/// update().

packages/cloud_firestore/cloud_firestore/lib/src/filters.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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-
part of cloud_firestore;
5+
part of '../cloud_firestore.dart';
66

77
class _FilterObject {
88
Map<String, Object?> build() {

0 commit comments

Comments
 (0)