dire_di 1.0.2
dire_di: ^1.0.2 copied to clipboard
A Spring-like dependency injection framework for Dart with auto-wiring capabilities using mirrors.
We analyzed this package 5 days ago, and awarded it 150 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
121 out of 170 API elements (71.2 %) have documentation comments.
Some symbols that are missing documentation: dire_di.Autowired.Autowired.new, dire_di.Bean.Bean.new, dire_di.BeanCreationException.BeanCreationException.new, dire_di.BeanCreationException.beanName, dire_di.BeanCreationException.cause.
10/10 points: Package has an example
20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Android
Because:
package:dire_di/dire_di.dartthat imports:package:dire_di/src/utils/type_utils.dartthat imports:dart:mirrors
Package not compatible with platform iOS
Because:
package:dire_di/dire_di.dartthat imports:package:dire_di/src/utils/type_utils.dartthat imports:dart:mirrors
Package not compatible with platform Web
Because:
package:dire_di/dire_di.dartthat imports:package:dire_di/src/utils/type_utils.dartthat imports:dart:mirrors
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 9 issues. Showing the first 2:
INFO: Unnecessary duplication of receiver.
lib/src/container/dire_container.dart:390:7
╷
390 │ instanceMirror.invoke(Symbol(methodName), []);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/container/dire_container.dart
INFO: Catch clause should use 'on' to specify the type of exception being caught.
lib/src/container/dire_container.dart:391:7
╷
391 │ } catch (e) {
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/container/dire_container.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
collection |
^1.17.0 |
1.19.1 | 1.19.1 | |
meta |
^1.9.0 |
1.18.3 | 1.18.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.12, Dart 3.12.2.
Check the analysis log for details.