Skip to content

Commit f978d1e

Browse files
Allow latest lints versions, fix new reported issues
1 parent b4b5088 commit f978d1e

File tree

7 files changed

+9
-12
lines changed

7 files changed

+9
-12
lines changed

benchmark/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ dependencies:
1111
ffi: ^2.0.1
1212

1313
dev_dependencies:
14-
# lints 2.1.0+ requires Dart 3, but CI still tests with Dart 2, but also need 3.0.0+ to match pana
15-
lints: '>=2.0.1 <4.0.0'
14+
lints: '>=5.0.0 <7.0.0' # 6.0.0 requires Dart 3.8, but still testing with 3.7
1615
objectbox_generator: any
1716
build_runner: any

generator/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424

2525
dev_dependencies:
2626
test: ^1.25.8
27-
lints: ^3.0.0
27+
lints: '>=5.0.0 <7.0.0' # 6.0.0 requires Dart 3.8, but still testing with 3.7
2828
pub_semver: ^2.2.0
2929
package_config: ^2.2.0
3030
build_test: ^3.0.0

generator/test/generator_test_env.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class GeneratorTestEnv {
104104

105105
/// Check that the model is specified and written to JSON correctly.
106106
/// Note: there are tests asserting the generated model code in integration-tests/common.dart
107-
_commonModelTests(ModelInfo generatorModel, ModelInfo jsonModel) {
107+
void _commonModelTests(ModelInfo generatorModel, ModelInfo jsonModel) {
108108
// collect UIDs on all entities and properties
109109
final allUIDs = generatorModel.entities
110110
.map(
@@ -186,11 +186,11 @@ class GeneratorTestEnv {
186186
expect(jsonModel.version, generatorModel.version);
187187
}
188188

189-
_expectIdUid(IdUid actual, IdUid expected) {
189+
void _expectIdUid(IdUid actual, IdUid expected) {
190190
expect(actual.toString(), expected.toString());
191191
}
192192

193-
_testLastId(IdUid last, Iterable<IdUid> all, Iterable<int> retired) {
193+
void _testLastId(IdUid last, Iterable<IdUid> all, Iterable<int> retired) {
194194
if (last.isEmpty) return;
195195

196196
// If among used IDs, UID should match; ID and UID not re-used elsewhere

objectbox/lib/src/native/bindings/nativemem.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:ffi';
22
import 'dart:io';
33

4-
/// Provides native memory manipulation, operating on FFI Pointer<Void>.
4+
/// Provides native memory manipulation, operating on FFI `Pointer<Void>`.
55
66
/// memset(ptr, value, num) sets the first num bytes of the block of memory
77
/// pointed by ptr to the specified value (interpreted as an uint8).

objectbox/lib/src/relations/to_many.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ToMany<EntityT> extends Object with ListMixin<EntityT> {
5353
/// Store which contains a pointer.
5454
///
5555
/// Using dynamic for the owning entity type as adding it would require
56-
/// a breaking API change to ToMany (-> ToMany<EntityT, OwningEntityT>).
56+
/// a breaking API change to ToMany (-> `ToMany<EntityT, OwningEntityT>`).
5757
_ToManyStoreConfiguration<EntityT, dynamic>? _storeConfiguration;
5858

5959
List<EntityT>? __items;

objectbox/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ dependencies:
2020

2121
dev_dependencies:
2222
ffigen: ^7.2.11 # v8 requires Dart 3, not requiring it, yet.
23-
# lints 2.1.0+ requires Dart 3, but CI still tests with Dart 2, but also need 3.0.0+ to match pana
24-
lints: '>=2.0.1 <4.0.0'
23+
lints: '>=5.0.0 <7.0.0' # 6.0.0 requires Dart 3.8, but still testing with 3.7
2524
test: ^1.16.5 # To run coverage on this package.
2625

2726
ffigen:

objectbox_test/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ dev_dependencies:
1515
collection: any # via objectbox
1616
build_runner: ^2.0.0
1717
flat_buffers: any # via objectbox
18-
# lints 2.1.0+ requires Dart 3, but CI still tests with Dart 2, but also need 3.0.0+ to match pana
19-
lints: '>=2.0.1 <4.0.0'
18+
lints: '>=5.0.0 <7.0.0' # 6.0.0 requires Dart 3.8, but still testing with 3.7
2019
objectbox_generator: any
2120
test: ^1.16.5
2221

0 commit comments

Comments
 (0)