Skip to content

Commit ba2c5e7

Browse files
authored
Enable and fix new team lints, require Dart 2.19 (dart-archive/gcloud#155)
1 parent fb96fa7 commit ba2c5e7

Some content is hidden

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

41 files changed

+124
-153
lines changed

pkgs/gcloud/.github/workflows/test-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
matrix:
4848
# Add macos-latest and/or windows-latest if relevant for this package.
4949
os: [ubuntu-latest]
50-
sdk: [2.12.0, dev]
50+
sdk: [2.19.0, dev]
5151
steps:
5252
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
5353
- uses: dart-lang/setup-dart@a57a6c04cf7d4840e88432aad6281d1e125f0d46

pkgs/gcloud/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.8-dev
2+
3+
- Require Dart 2.19
4+
15
## 0.8.7
26

37
- Fix `Bucket.write` when size is below 1MB.

pkgs/gcloud/analysis_options.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
include: package:lints/recommended.yaml
1+
include: package:dart_flutter_team_lints/analysis_options.yaml
22

33
analyzer:
44
language:
55
strict-casts: true
66

77
linter:
88
rules:
9-
- await_only_futures
10-
- camel_case_types
119
- cancel_subscriptions
12-
- control_flow_in_finally
13-
- directives_ordering
14-
- empty_statements
15-
- iterable_contains_unrelated_type
16-
- list_remove_unrelated_type
1710
- package_api_docs
18-
- package_names
19-
- package_prefixed_library_names
2011
- prefer_relative_imports
2112
- test_types_in_equals
22-
- throw_in_finally
23-
- unnecessary_brace_in_string_interps

pkgs/gcloud/lib/common.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 gcloud.common;
6-
75
import 'dart:async';
86

97
/// A single page of paged results from a query.

pkgs/gcloud/lib/datastore.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
///
88
/// For more information on Cloud Datastore, please refer to the following
99
/// developers page: https://cloud.google.com/datastore/docs
10-
library gcloud.datastore;
10+
library;
1111

1212
import 'dart:async';
1313

@@ -52,7 +52,7 @@ class DatastoreError implements Exception {
5252
final String message;
5353

5454
DatastoreError([String? message])
55-
: message = (message ?? 'DatastoreError: An unknown error occured');
55+
: message = message ?? 'DatastoreError: An unknown error occured';
5656

5757
@override
5858
String toString() => message;

pkgs/gcloud/lib/db.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-
library gcloud.db;
5+
library;
66

77
import 'dart:collection';
88
// dart:core is imported explicitly so it is available at top-level without

pkgs/gcloud/lib/db/metamodel.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 gcloud.db.meta_model;
6-
75
import '../db.dart' as db;
86

97
@db.Kind(name: '__namespace__')

pkgs/gcloud/lib/http.dart

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

55
/// Provides access to an authenticated HTTP client which can be used to access
66
/// Google APIs.
7-
library gcloud.http;
7+
library;
88

99
import 'package:http/http.dart' as http;
1010

pkgs/gcloud/lib/pubsub.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 gcloud.pubsub;
6-
75
import 'dart:async';
86
import 'dart:collection';
97
import 'dart:convert';

pkgs/gcloud/lib/service_scope.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
/// and instead depend only on the services needed (e.g.
7373
/// `package:gcloud/storage.dart`) by using getters in the service library (e.g.
7474
/// the `storageService`) which are implemented with service scope lookups.
75-
library gcloud.service_scope;
75+
library;
7676

7777
import 'dart:async';
7878

0 commit comments

Comments
 (0)