state_machine 3.0.1
state_machine: ^3.0.1 copied to clipboard
Finite state machine library. Easily define legal state transitions. Listen to state entrances, departures, and transitions.
We analyzed this package 14 days ago, and awarded it 125 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
0/5 points: Provide a valid README.md
Links in `README.md` should be secure. 1 link is insecure.
README.md:4:1
╷
4 │ <a href="http://codecov.io/github/Workiva/state_machine?branch=master"><img src="https://codecov.io/gh/Workiva/state_machine/branch/master/graph/badge.svg" alt="codecov.io" /></a>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
Use https
URLs instead.
5/5 points: Provide a valid CHANGELOG.md
0/10 points: Use an OSI-approved license
No license was recognized.
Consider using an OSI-approved license in the LICENSE
file to make it more accessible to the community.
10/10 points: 20% or more of the public API has dartdoc comments
84 out of 95 API elements (88.4 %) have documentation comments.
Some symbols that are missing documentation: state_machine.IllegalStateMachineMutation.IllegalStateMachineMutation.new
, state_machine.IllegalStateMachineMutation.message
, state_machine.IllegalStateTransition.IllegalStateTransition.new
, state_machine.IllegalStateTransition.from
, state_machine.IllegalStateTransition.message
.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add 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 3 issues. Showing the first 2:
INFO: Statements in an if should be enclosed in a block.
lib/src/state_machine.dart:262:7
╷
262 │ ┌ throw IllegalStateMachineMutation(
263 │ └ 'Cannot create new state ($name) once the machine has been started.');
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/state_machine.dart
INFO: Statements in an if should be enclosed in a block.
lib/src/state_machine.dart:278:7
╷
278 │ ┌ throw IllegalStateMachineMutation(
279 │ └ 'Cannot create new state transition ($name) once the machine has been started.');
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/state_machine.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
w_common |
^3.0.0 |
3.2.0 | 3.2.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
clock |
- | 1.1.2 | 1.1.2 | |
intl |
- | 0.18.1 | 0.20.2 | |
js |
- | 0.6.7 | 0.7.2 | Discontinued |
logging |
- | 1.3.0 | 1.3.0 | |
meta |
- | 1.16.0 | 1.16.0 | |
path |
- | 1.9.1 | 1.9.1 |
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.22.20
, Dart 3.7.2
.
Check the analysis log for details.