ucum 0.5.0 copy "ucum: ^0.5.0" to clipboard
ucum: ^0.5.0 copied to clipboard

Dart Library Mimicking the Unified Code for Units of Measure Library Functionality

0
likes
140/ 160
pub points
47%
popularity

We analyzed this package 4 days ago, and awarded it 140 pub points (of a possible 160):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

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.

partial
Provide documentation
10 / 20trigger folding of the section

0/10 points: 20% or more of the public API has dartdoc comments

46 out of 401 API elements (11.5 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: base_unit, base_unit.BaseUnit, base_unit.BaseUnit.toJson, base_units, canonical.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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:ucum/ucum.dart that imports:
  • package:ucum/special/special.dart that imports:
  • package:ucum/special/xml_utils.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:ucum/ucum.dart that imports:
  • package:ucum/special/special.dart that imports:
  • package:ucum/special/xml_utils.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.

partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: 'text' is deprecated and shouldn't be used. Use [value] to access the textual content of this node, or [innerText] to access the textual content of its descendants.

lib/special/xml_utils.dart:21:15

   ╷
21 │     return e?.text;
   │               ^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/special/xml_utils.dart

OK
Support up-to-date dependencies
40 / 40trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
xml ^6.5.0 6.5.0 6.5.0
Transitive dependencies
Package Constraint Compatible Latest
collection - 1.19.1 1.19.1
meta - 1.16.0 1.16.0
petitparser - 6.0.2 6.0.2

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.15, Dart 3.5.4.

Check the analysis log for details.

0
likes
140
pub points
47%
popularity

Publisher

verified publisherfhirfli.dev

Dart Library Mimicking the Unified Code for Units of Measure Library Functionality

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

xml

More

Packages that depend on ucum