Skip to content

Commit 7eb80be

Browse files
analysis: allow lints down to 2.0.1 to support testing with Dart 2 #101
Actually there are issues with building with an older SDK, never mind.
1 parent 3ce9e98 commit 7eb80be

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

benchmark/pubspec.yaml

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

1313
dev_dependencies:
14-
lints: ^3.0.0 # Requires Dart 3, but running analyzer only during development and with latest SDK
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'
1516
objectbox_generator: any
1617
build_runner: any

generator/pubspec.yaml

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

2525
dev_dependencies:
2626
test: ^1.16.5
27-
lints: ^3.0.0 # Requires Dart 3, but running analyzer only during development and with latest SDK
27+
# lints 2.1.0+ requires Dart 3, but CI still tests with Dart 2, but also need 3.0.0+ to match pana
28+
lints: '>=2.0.1 <4.0.0'
2829
crypto: ^3.0.2
2930
pub_semver: ^2.1.3
3031
package_config: ^2.1.0

objectbox/pubspec.yaml

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

2121
dev_dependencies:
2222
ffigen: ^7.2.11 # v8 requires Dart 3, not requiring it, yet.
23-
lints: ^3.0.0 # Requires Dart 3, but running analyzer only during development and with latest SDK
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'
2425
test: ^1.16.5 # To run coverage on this package.
2526

2627
ffigen:

objectbox_test/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ dev_dependencies:
1515
collection: any # via objectbox
1616
build_runner: ^2.0.0
1717
flat_buffers: any # via objectbox
18-
lints: ^3.0.0 # Requires Dart 3, but running analyzer only during development and with latest SDK
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'
1920
objectbox_generator: any
2021
test: ^1.16.5
2122

0 commit comments

Comments
 (0)