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 5 days ago, and awarded it 110 pub points (of a possible 140):
10/10 points: Provide a valid pubspec.yaml
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
.
10/10 points: Package has an example
0/10 points: Failed to run dartdoc
dartdoc
failed with:
exitCode: 255
stdout: [2023-05-19T23:03:08.522249] Starting...
Documenting swift_server...
Initialized dartdoc with 872 libraries
Generating docs for library c7server from package:swift_server/server.dart...
Generating docs for library c7server from package:swift_server/config.dart...
Generating docs for library c7server from package:swift_server/tools.dart...
Generating docs for library c7server from package:swift_server/daemon.dart...
Generating docs for library builtin_actions from package:swift_server/builtin_ac[...]
Generating docs for library http_status_codes from package:swift_server/http_sta[...]
Generating docs for library c7server from package:swift_server/cli.dart...
Generating docs for library queues from package:swift_server/queues.dart...
Generating docs for library swift_composer.test from package:swift_server/testsu[...]
Generating docs for library error_handler from package:swift_server/error_handler.dart...
Generating docs for library stats from package:swift_server/stats.dart...
Documented 11 public libraries in 75.2 seconds
stderr: warning: c7server has no library level documentation comments
from c7server: (file:///tmp/pub-dartlang-dartdocNOFDMG/pkg/lib/server.dart:1:9)
warning: c7server has no library level documentation comments
from c7server: (file:///tmp/pub-dartlang-dartdocNOFDMG/pkg/lib/config.dart:1:9)
error: failed to write file at: c7server/c7server-library.html
for symbol c7server: (file:///tmp/pub-dartlang-dartdocNOFDMG/pkg/lib/config.dart:1:9)
conflicting with file already generated by c7server: (file:///tmp/pub-dartla[...]
Dartdoc generates a path and filename to write to for each symbol.
c7server conflicts with another symbol in the generated
path, and therefore can not be written out. Changing the name,
library name, or class name (if appropriate) of one of the
conflicting items can resolve the conflict. Alternatively, use the
@nodoc tag in one symbol's documentation comments to hide it.
warning: c7server has no library level documentation comments
from c7server: (file:///tmp/pub-dartlang-dartdocNOFDMG/pkg/lib/tools.dart:1:9)
error: failed to write file at: c7server/c7server-library.html
for symbol c7server: (file:///tmp/pub-dartlang-dartdocNOFDMG/pkg/lib/tools.dart:1:9)
conflicting with file already generated by c7server: (file:///tmp/pub-dartla[...]
warning: c7server has no library level documentation comments
from c7server: (file:///tmp/pub-dartlang-dartdocNOFDMG/pkg/lib/daemon.dart:1:9)
error: failed to write file at: c7server/c7server-library.html
for symbol c7server: (file:///tmp/pub-dartlang-dartdocNOFDMG/pkg/lib/daemon.dart:1:9)
conflicting with file already generated by c7server: (file:///tmp/pub-dartla[...]
warning: c7server has no library level documentation comments
from c7server: (file:///tmp/pub-dartlang-dartdocNOFDMG/pkg/lib/cli.dart:1:9)
error: failed to write file at: c7server/c7server-library.html
for symbol c7server: (file:///tmp/pub-dartlang-dartdocNOFDMG/pkg/lib/cli.dart:1:9)
conflicting with file already generated by c7server: (file:///tmp/pub-dartla[...]
warning: swift_composer.test has no library level documentation comments
from swift_composer.test: (file:///tmp/pub-dartlang-dartdocNOFDMG/pkg/lib/te[...]
Found 6 warnings and 4 errors.
Unhandled exception:
encountered 4 errors
#0 Dartdoc.generateDocs (package:dartdoc/src/dartdoc.dart:258:9)
<asynchronous suspension>
#1 pubDartDoc (package:pub_dartdoc/pub_dartdoc.dart:32:19)
<asynchronous suspension>
#2 main (file:///project/pkg/pub_dartdoc/bin/pub_dartdoc.dart:7:52)
<asynchronous suspension>
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
20/30 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.4.1 | 2.4.1 |
dart_amqp |
^0.2.3 |
0.2.5 | 0.2.5 |
mysql1 |
^0.20.0 |
0.20.0 | 0.20.0 |
swift_composer |
^0.6.0 |
0.6.0 | 0.7.0 |
yaml |
^3.0.0 |
3.1.2 | 3.1.2 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
_fe_analyzer_shared |
- | 61.0.0 | 61.0.0 |
analyzer |
- | 5.13.0 | 5.13.0 |
async |
- | 2.11.0 | 2.11.0 |
build |
- | 2.4.0 | 2.4.0 |
build_config |
- | 1.1.1 | 1.1.1 |
checked_yaml |
- | 2.0.3 | 2.0.3 |
collection |
- | 1.17.2 | 1.17.2 |
convert |
- | 3.1.1 | 3.1.1 |
crypto |
- | 3.0.3 | 3.0.3 |
dart_style |
- | 2.3.1 | 2.3.1 |
file |
- | 7.0.0 | 7.0.0 |
glob |
- | 2.1.2 | 2.1.2 |
json_annotation |
- | 4.8.1 | 4.8.1 |
logging |
- | 1.2.0 | 1.2.0 |
meta |
- | 1.9.1 | 1.9.1 |
package_config |
- | 2.1.0 | 2.1.0 |
path |
- | 1.8.3 | 1.8.3 |
pool |
- | 1.5.1 | 1.5.1 |
pub_semver |
- | 2.1.4 | 2.1.4 |
pubspec_parse |
- | 1.2.3 | 1.2.3 |
source_gen |
- | 1.3.2 | 1.3.2 |
source_span |
- | 1.10.0 | 1.10.0 |
stack_trace |
- | 1.11.0 | 1.11.0 |
string_scanner |
- | 1.2.0 | 1.2.0 |
term_glyph |
- | 1.2.1 | 1.2.1 |
typed_data |
- | 1.3.2 | 1.3.2 |
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.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: Package is Dart 3 compatible!
Analysed with Pana 0.21.32
, Dart 3.0.0
.