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 4 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 310540 elements... Initialized dartdoc with 887 libraries Generating docs for library cli.dart from package:swift_server/cli.dart... Generating docs for library testsuite.dart from package:swift_server/testsuite.dart... Generating docs for library stats.dart from package:swift_server/stats.dart... Generating docs for library tools.dart from package:swift_server/tools.dart... Generating docs for library daemon.dart from package:swift_server/daemon.dart... [7 more lines] ERR: warning: c7server has no library level documentation comments from c7server: (file:///tmp/pana_TJPNKV/lib/cli.dart:1:1) warning: swift_composer.test has no library level documentation comments from swift_composer.test: (file:///tmp/pana_TJPNKV/lib/testsuite.dart:1:1) warning: c7server has no library level documentation comments from c7server: (file:///tmp/pana_TJPNKV/lib/tools.dart:1:1) error: file already written at "c7server/index.html" for symbol c7server: (file:///tmp/pana_TJPNKV/lib/tools.dart:1:1) conflicting with file already generated by c7server: (file:///tmp/pana_TJPNKV/lib/cli.dart:1:1) Dartdoc generates a path and filename to write to for each symbol. [51 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.cn/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 19 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: Missing type annotation.
lib/config.dart:16:3
╷
16 │ load(String path) async {
│ ^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/config.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
args |
^2.3.0 |
2.7.0 | 2.7.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.3 | 3.1.3 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
_fe_analyzer_shared |
- | 61.0.0 | 89.0.0 | |
analyzer |
- | 5.13.0 | 8.2.0 | |
async |
- | 2.13.0 | 2.13.0 | |
build |
- | 2.4.1 | 4.0.1 | |
build_config |
- | 1.2.0 | 1.2.0 | |
checked_yaml |
- | 2.0.4 | 2.0.4 | |
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 | 3.1.2 | |
file |
- | 7.0.1 | 7.0.1 | |
glob |
- | 2.1.3 | 2.1.3 | |
json_annotation |
- | 4.9.0 | 4.9.0 | |
logging |
- | 1.3.0 | 1.3.0 | |
meta |
- | 1.17.0 | 1.17.0 | |
package_config |
- | 2.2.0 | 2.2.0 | |
path |
- | 1.9.1 | 1.9.1 | |
pool |
- | 1.5.2 | 1.5.2 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
pubspec_parse |
- | 1.5.0 | 1.5.0 | |
source_gen |
- | 1.5.0 | 4.0.1 | |
source_span |
- | 1.10.1 | 1.10.1 | |
stack_trace |
- | 1.12.1 | 1.12.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 | |
watcher |
- | 1.1.4 | 1.1.4 |
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.23
, Dart 3.9.3
.
Check the analysis log for details.