revali_router 1.2.0 copy "revali_router: ^1.2.0" to clipboard
revali_router: ^1.2.0 copied to clipboard

Feature rich http router for Revali

0
likes
80/ 160
pub points
254
downloads

We analyzed this package 7 days ago, and awarded it 80 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 short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/mrgnhnt96/revali/issues was unreachable. Make sure that the website is reachable via HEAD requests.

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

149 out of 1027 API elements (14.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: coerce, coerce.coerce, revali_router, revali_router.AllowHeaders, revali_router.AllowHeaders.AllowHeaders.

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:revali_router/revali_router.dart that imports:
  • package:revali_router/src/server/handle_requests.dart that imports:
  • package:revali_router_core/response_handler/response_handler.dart that imports:
  • package:revali_router_core/request/request_context.dart that imports:
  • package:revali_router_core/request/underlying_request.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

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

Found 44 issues. Showing the first 2:

ERROR: The name 'LifecycleComponents' is defined in the libraries 'package:revali_router_annotations/src/lifecycle_components.dart' and 'package:revali_router_core/route/lifecycle_components.dart'.

lib/revali_router.dart:9:8

  ╷
9 │ export 'package:revali_router_core/revali_router_core.dart'
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

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

ERROR: The argument type 'int?' can't be assigned to the parameter type 'int'.

lib/src/body/response_body/file_body_data.dart:73:66

   ╷
73 │       final (realStart, realEnd, realLength) = cleanRange(start, end);
   │                                                                  ^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/body/response_body/file_body_data.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
autoequal ^0.9.1 0.9.1 0.9.1
collection ^1.19.0 1.19.1 1.19.1
copy_with_extension ^5.0.4 5.0.4 6.0.0
equatable ^2.0.5 2.0.7 2.0.7
http_parser ^4.1.0 4.1.1 4.1.1
mime ^1.0.5 1.0.6 2.0.0
path ^1.9.0 1.9.1 1.9.1
revali_annotations ^1.2.0 1.2.0 1.2.0
revali_core ^1.0.0 1.1.0 1.1.0
revali_router_annotations ^1.0.1 1.1.0 1.1.0
revali_router_core ^1.2.0 1.3.0 1.3.0
stack_trace ^1.11.1 1.12.1 1.12.1
Transitive dependencies
Package Constraint Compatible Latest
meta - 1.16.0 1.16.0
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0

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

The constraint `^5.0.4` on copy_with_extension does not support the stable version `6.0.0`, that was published 20 days ago.

When copy_with_extension is 30 days old, this package will no longer be awarded points in this category.

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

The constraint `^1.0.5` on mime does not support the stable version `2.0.0`.

Try running dart pub upgrade --major-versions mime 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.17, Dart 3.6.0.

Check the analysis log for details.