swift_server 0.2.1 swift_server: ^0.2.1 copied to clipboard
Simple microservices framework using swift_composer. Create servers, daemons and cli tools with a layer to access mysql db, amqp and files. Used by https://swift.shop
We analyzed this package 2 days ago, and awarded it 120 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
Failed to verify repository URL.
Please provide a valid repository
URL in pubspec.yaml
, such that:
repository
can be cloned,- a clone of the repository contains a
pubspec.yaml
, which:,- contains
name: swift_server
, - contains a
version
property, and, - does not contain a
publish_to
property.
- contains
pubspec.yaml
from the repository URL mismatch: expected https://github.com/fsw/swift_server
but got https://github.com/coffee-software/swift_server
.
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: BSD-2-Clause
.
0/10 points: 20% or more of the public API has dartdoc comments
OUT: Documenting swift_server... Discovering libraries... Linking elements... Precaching local docs for 311079 elements... Initialized dartdoc with 885 libraries Generating docs for library testsuite.dart from package:swift_server/testsuite.dart... Generating docs for library config.dart from package:swift_server/config.dart... Generating docs for library queues.dart from package:swift_server/queues.dart... Generating docs for library cli.dart from package:swift_server/cli.dart... Generating docs for library error_handler.dart from package:swift_server/error_handler.dart... [7 more lines] ERR: warning: swift_composer.test has no library level documentation comments from swift_composer.test: (file:///tmp/pana_GHKGGY/lib/testsuite.dart:1:9) warning: c7server has no library level documentation comments from c7server: (file:///tmp/pana_GHKGGY/lib/config.dart:1:9) warning: c7server has no library level documentation comments from c7server: (file:///tmp/pana_GHKGGY/lib/cli.dart:1:9) error: file already written at "c7server/c7server-library.html" for symbol c7server: (file:///tmp/pana_GHKGGY/lib/cli.dart:1:9) conflicting with file already generated by c7server: (file:///tmp/pana_GHKGGY/lib/config.dart:1:9) Dartdoc generates a path and filename to write to for each symbol. [39 more lines]
10/10 points: Package has an example
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:swift_server/builtin_actions.dart
that imports:package:swift_server/server.dart
that imports:package:swift_server/queues.dart
that imports:package:swift_server/tools.dart
that imports:package:swift_server/config.dart
that imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:swift_server/builtin_actions.dart
that imports:package:swift_server/server.dart
that imports:package:swift_server/queues.dart
that imports:package:swift_server/tools.dart
that imports:package:swift_server/config.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.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 15 issues. Showing the first 2:
INFO: Use 'isEmpty' instead of 'length' to test whether the collection is empty.
lib/cli.dart:69:9
╷
69 │ if (arguments.length < 1 || !allCommands.containsKey(arguments[0])) {
│ ^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/cli.dart
INFO: Uses 'await' on an instance of 'StreamSubscription
lib/daemon.dart:177:9
╷
177 │ await consumer.listen((amqp.AmqpMessage message) async {
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/daemon.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
args |
^2.3.0 |
2.6.0 | 2.6.0 |
dart_amqp |
^0.2.3 |
0.2.5 | 0.3.1 |
mysql1 |
^0.20.0 |
0.20.0 | 0.20.0 |
swift_composer |
^0.6.0 |
0.6.0 | 0.8.1 |
yaml |
^3.0.0 |
3.1.2 | 3.1.2 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
_fe_analyzer_shared |
- | 61.0.0 | 76.0.0 |
analyzer |
- | 5.13.0 | 6.11.0 |
async |
- | 2.12.0 | 2.12.0 |
build |
- | 2.4.1 | 2.4.1 |
build_config |
- | 1.1.1 | 1.1.1 |
checked_yaml |
- | 2.0.3 | 2.0.3 |
collection |
- | 1.19.1 | 1.19.1 |
convert |
- | 3.1.2 | 3.1.2 |
crypto |
- | 3.0.6 | 3.0.6 |
dart_style |
- | 2.3.2 | 2.3.7 |
file |
- | 7.0.1 | 7.0.1 |
glob |
- | 2.1.2 | 2.1.2 |
json_annotation |
- | 4.9.0 | 4.9.0 |
logging |
- | 1.3.0 | 1.3.0 |
meta |
- | 1.16.0 | 1.16.0 |
package_config |
- | 2.1.0 | 2.1.0 |
path |
- | 1.9.1 | 1.9.1 |
pool |
- | 1.5.1 | 1.5.1 |
pub_semver |
- | 2.1.4 | 2.1.4 |
pubspec_parse |
- | 1.3.0 | 1.3.0 |
source_gen |
- | 1.5.0 | 1.5.0 |
source_span |
- | 1.10.0 | 1.10.0 |
stack_trace |
- | 1.12.0 | 1.12.0 |
string_scanner |
- | 1.4.0 | 1.4.0 |
term_glyph |
- | 1.2.1 | 1.2.1 |
typed_data |
- | 1.4.0 | 1.4.0 |
watcher |
- | 1.1.0 | 1.1.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^0.2.3` on dart_amqp does not support the stable version `0.3.0`.
Try running dart pub upgrade --major-versions dart_amqp
to update the constraint.
The constraint `^0.6.0` on swift_composer does not support the stable version `0.7.0`.
Try running dart pub upgrade --major-versions swift_composer
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.15
, Dart 3.5.4
.
Check the analysis log for details.