dcli_core 2.3.0 copy "dcli_core: ^2.3.0" to clipboard
dcli_core: ^2.3.0 copied to clipboard

The core asyncronous functions used by dcli. DCli uses waitFor to eliminate async code in the DCli libraries which precludes DCli's usage in non-cli apps (e.g. you can't use it in flutter). The aim of [...]

0
likes
120/ 160
pub points
66%
popularity

We analyzed this package 15 hours ago, and awarded it 120 pub points (of a possible 160):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

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.

failed
Provide documentation
10 / 20trigger folding of the section

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

185 out of 203 API elements (91.1 %) have documentation comments.

Some symbols that are missing documentation: dcli_core, dcli_core.DCliException.DCliException.from, dcli_core.DCliException.DCliException.fromException, dcli_core.DCliException.message, dcli_core.DCliException.printStackTrace.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add 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 does not support platform `Web`.

Because:

  • package:dcli_core/dcli_core.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:dcli_core/dcli_core.dart that imports:
  • package:dcli_core/src/util/truepath.dart that imports:
  • package:dcli_core/src/functions/pwd.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

Found 3 issues. Showing the first 2:

INFO: 'Platform.new' is deprecated and shouldn't be used. Do not instantiate this class, it will become abstract in a future Dart version.

lib/src/util/line_file.dart:85:42

   ╷
85 │     final finalline = line + (newline ?? Platform().eol);
   │                                          ^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/util/line_file.dart

INFO: 'Platform.new' is deprecated and shouldn't be used. Do not instantiate this class, it will become abstract in a future Dart version.

lib/src/util/line_file.dart:102:42

    ╷
102 │     final finalline = line + (newline ?? Platform().eol);
    │                                          ^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/util/line_file.dart

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

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

Package Constraint Compatible Latest
async ^2.5.0 2.11.0 2.11.0
circular_buffer ^0.11.0 0.11.0 0.11.0
collection ^1.15.0 1.19.0 1.19.0
crypto ^3.0.1 3.0.5 3.0.5
logging ^1.0.2 1.2.0 1.2.0
meta ^1.3.0 1.16.0 1.16.0
path ^1.8.0 1.9.0 1.9.0
scope ^3.0.0 3.0.0 5.1.0
stack_trace ^1.10.0 1.11.1 1.11.1
uuid ^3.0.0 3.0.7 4.5.0
Transitive dependencies
Package Constraint Compatible Latest
typed_data - 1.3.2 1.3.2

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^3.0.0` on scope does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions scope to update the constraint.

The constraint `^3.0.0` on uuid does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions uuid to update the constraint.

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.12, Dart 3.5.2.

Check the analysis log for details.

0
likes
120
pub points
66%
popularity

Publisher

verified publisheronepub.dev

The core asyncronous functions used by dcli. DCli uses waitFor to eliminate async code in the DCli libraries which precludes DCli's usage in non-cli apps (e.g. you can't use it in flutter). The aim of dcli_core is to expose a significant set of the core dcli functions as async version so that dcli_core can be used in any project. DCli will then rely on dcli_core for core parts of its implemenation to avoid duplicating code between the two packages.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

async, circular_buffer, collection, crypto, logging, meta, path, scope, stack_trace, uuid

More

Packages that depend on dcli_core