dart_mqtt 1.0.5
dart_mqtt: ^1.0.5 copied to clipboard
a mqtt library to easy connect via tcp/ssl,dependence xtransport,developing,not stable.
We analyzed this package 40 hours 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: GPL-3.0
.
10/10 points: 20% or more of the public API has dartdoc comments
42 out of 73 API elements (57.5 %) have documentation comments.
Some symbols that are missing documentation: dart_mqtt.BadCertificateHandler
, dart_mqtt.EvtMqttPublishArrived
, dart_mqtt.MqttClient.MqttClient.new
, dart_mqtt.MqttClient.connectPacket
, dart_mqtt.MqttClient.instance
.
10/10 points: Package has an example
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:dart_mqtt/dart_mqtt.dart
that imports:package:xtransport/src/ws.dart
that imports:package:xtransport/src/ws_html.dart
that imports:package:xtransport/src/shared/credentials.dart
that imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:dart_mqtt/dart_mqtt.dart
that imports:package:xtransport/src/ws.dart
that imports:package:xtransport/src/ws_io.dart
that imports:package:xtransport/src/logger_io.dart
that imports:dart:io
This package is not compatible with runtime wasm
, and will not be rewarded full 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
INFO: Use 'isNotEmpty' instead of 'length' to test whether the collection is empty.
lib/src/client.dart:323:13
╷
323 │ while(_buf.bytes.length > 0){
│ ^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/client.dart
/tmp/pana_CLVOXK/lib/src/client.dart doesn't match the Dart formatter.
To format your files run: dart format .
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
xtransport |
^0.0.5 |
0.0.5 | 0.0.5 |
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.21
, Dart 3.8.1
.
Check the analysis log for details.