anyhow 0.8.0 copy "anyhow: ^0.8.0" to clipboard
anyhow: ^0.8.0 copied to clipboard

Versatile and idiomatic error handling capabilities to make your code safer, more maintainable, and errors easier to debug. Dart implementation of Rust's Result monad type and "anyhow" crate.

19
likes
140/ 160
pub points
57%
popularity

We analyzed this package 19 hours ago, and awarded it 140 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.

OK
Provide documentation
20 / 20trigger folding of the section

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

166 out of 237 API elements (70.0 %) have documentation comments.

Some symbols that are missing documentation: anyhow, anyhow.AnyhowErrExtensions, anyhow.AnyhowFutureResultExtension, anyhow.AnyhowFutureResultExtension.context, anyhow.AnyhowFutureResultExtension.withContext.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 15 issues. Showing the first 2:

INFO: The type parameter 'S' shadows a type parameter from the enclosing extension.

lib/src/anyhow/anyhow_extensions.dart:122:16

    ╷
122 │   Err<S> toErr<S>() {
    │                ^
    ╵

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

INFO: The type parameter 'E' shadows a type parameter from the enclosing extension.

lib/src/anyhow/anyhow_extensions.dart:132:16

    ╷
132 │   Err<E> toErr<E>() {
    │                ^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/anyhow/anyhow_extensions.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

No dependencies.

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.7, Dart 3.4.4.

Check the analysis log for details.

19
likes
140
pub points
57%
popularity

Publisher

verified publishervoyver.com

Versatile and idiomatic error handling capabilities to make your code safer, more maintainable, and errors easier to debug. Dart implementation of Rust's Result monad type and "anyhow" crate.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on anyhow