rpi_spi 0.4.0 rpi_spi: ^0.4.0 copied to clipboard
rpi_spi is a Dart library for using SPI on the Raspberry Pi.
We analyzed this package 5 days ago, and awarded it 120 pub points (of a possible 140):
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: BSD-3-Clause
.
10/10 points: 20% or more of the public API has dartdoc comments
11 out of 18 API elements (61.1 %) have documentation comments.
Some symbols that are missing documentation: rpi_spi
, rpi_spi.RpiSpiDevice
, rpi_spi.RpiSpiDevice.RpiSpiDevice
, spi
, spi.SpiException.chipSelectPin
.
10/10 points: Package has an example
20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Linux
These platforms are not supported:
Package does not support platform `Android`.
Because:
package:rpi_spi/rpi_spi.dart
that declares support for platforms:Linux
.
Package does not support platform `iOS`.
Because:
package:rpi_spi/rpi_spi.dart
that declares support for platforms:Linux
.
Package does not support platform `Windows`.
Because:
package:rpi_spi/rpi_spi.dart
that declares support for platforms:Linux
.
Package does not support platform `macOS`.
Because:
package:rpi_spi/rpi_spi.dart
that declares support for platforms:Linux
.
Package does not support platform `Web`.
Because:
package:rpi_spi/rpi_spi.dart
that declares support for platforms:Linux
.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 8 issues. Showing the first 2:
INFO: Statements in an if should be enclosed in a block.
lib/rpi_spi.dart:23:7
╷
23 │ throw SpiException('Invalid mode: $mode', controller, chipSelectPin);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/rpi_spi.dart
INFO: Statements in an if should be enclosed in a block.
lib/rpi_spi.dart:28:7
╷
28 │ throw SpiException('Device init failed: $fd', controller, chipSelectPin);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/rpi_spi.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
ffi |
^1.2.1 |
1.2.1 | 2.1.2 |
path |
>=1.0.0 <2.0.0 |
1.9.0 | 1.9.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^1.2.1` on ffi does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions ffi
to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
Analyzed with Pana 0.22.3
, Dart 3.3.3
.
Check the analysis log for details.