dcli_core 1.36.2 copy "dcli_core: ^1.36.2" to clipboard
dcli_core: ^1.36.2 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
100/ 140
pub points
73%
popularity

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

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

197 out of 223 API elements (88.3 %) 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.

OK
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.
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
10 / 20trigger 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.18.0 1.18.0
crypto ^3.0.1 3.0.3 3.0.3
logging ^1.0.2 1.2.0 1.2.0
meta ^1.3.0 1.15.0 1.15.0
path ^1.8.0 1.9.0 1.9.0
scope ^3.0.0 3.0.0 4.1.0
stacktrace_impl ^2.3.0 2.3.0 2.3.0
uuid ^3.0.0 3.0.7 4.4.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

Analyzed with Pana 0.22.3, Dart 3.3.4.

Check the analysis log for details.

0
likes
100
pub points
73%
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, stacktrace_impl, uuid

More

Packages that depend on dcli_core