lean_extensions 0.14.3
lean_extensions: ^0.14.3 copied to clipboard
A collection of extension methods without flutter dependency. Also includes some python-like functionality and json converters for easy validation
We analyzed this package 19 days ago, and awarded it 120 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
229 out of 253 API elements (90.5 %) have documentation comments.
Some symbols that are missing documentation: lean_extensions.AnyBoolConverter.fromJson, lean_extensions.AnyDateConverter.fromJson, lean_extensions.AnyDateConverter.toJson, lean_extensions.AnyDateTimeConverter.fromJson, lean_extensions.AnyDateTimeConverter.toJson.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
0/0 points: WASM compatibility
This package is compatible with runtime wasm, and will be rewarded additional points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 8 issues. Showing the first 2:
INFO: Unnecessary use of a null-aware operator to invoke an extension method on a nullable type.
lib/src/converters.dart:29:39
╷
29 │ bool? fromJson(Object? json) => json?.toBoolean();
│ ^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/converters.dart
INFO: Missing documentation explaining why the diagnostic is ignored.
lib/src/extensions.dart:1:1
╷
1 │ // ignore_for_file: unnecessary_cast
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/extensions.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
any_date |
>=0.1.9 <1.0.0 |
0.1.16 | 1.2.1 | |
collection |
^1.0.0 |
1.19.1 | 1.19.1 | |
english_numerals |
>=0.2.2 <1.0.0 |
0.2.2 | 1.1.0 | |
json_annotation |
^4.0.0 |
4.9.0 | 4.9.0 | |
meta |
^1.0.0 |
1.17.0 | 1.17.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `>=0.1.9 <1.0.0` on any_date does not support the stable version `1.0.0`.
Try running dart pub upgrade --major-versions any_date to update the constraint.
The constraint `>=0.2.2 <1.0.0` on english_numerals does not support the stable version `1.0.0`.
Try running dart pub upgrade --major-versions english_numerals to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 1 error:
CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER-lib/src/converters.dart:7:9- A constant constructor can't call a non-constant super constructor of 'ToDynamicConverter'.
Run dart pub downgrade and then dart analyze to reproduce the above problem.
You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.23.3, Dart 3.10.4.
Check the analysis log for details.