swift_server 0.3.0 copy "swift_server: ^0.3.0" to clipboard
swift_server: ^0.3.0 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

0
likes
110/ 140
pub points
0%
popularity

We analyzed this package 4 days ago, and awarded it 110 pub points (of a possible 140):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

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.

failed
Provide documentation
10 / 20trigger folding of the section

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 332840 elements... Initialized dartdoc with 1012 libraries Generating docs for library api.dart from package:swift_server/api.dart... Generating docs for library cli.dart from package:swift_server/cli.dart... Generating docs for library cache.dart from package:swift_server/cache.dart... Generating docs for library livetests.dart from package:swift_server/livetests.dart... Generating docs for library config.dart from package:swift_server/config.dart... [13 more lines] ERR: warning: private API of package:swift_composer is reexported by libraries in other packages: from c7server.SubtypeInfo: (file:///tmp/analyzerGRQFVJ/pub-cache/hosted/20240418t083500-dot-dartlang-pub.appspot.com/swift_composer-0.8.1/lib/swift_composer.dart:16:7) referred to by c7server: (file:///tmp/pana_DXYVPC/lib/daemon.dart:1:9) referred to by c7server: (file:///tmp/pana_DXYVPC/lib/api.dart:1:9) referred to by c7server: (file:///tmp/pana_DXYVPC/lib/cli.dart:1:9) referred to by server: (file:///tmp/pana_DXYVPC/lib/server.dart:1:1) warning: private API of package:swift_composer is reexported by libraries in other packages: from server.SubtypeInfo.SubtypeInfo: (file:///tmp/analyzerGRQFVJ/pub-cache/hosted/20240418t083500-dot-dartlang-pub.appspot.com/swift_composer-0.8.1/lib/swift_composer.dart:21:3) referred to by c7server: (file:///tmp/pana_DXYVPC/lib/daemon.dart:1:9) referred to by c7server: (file:///tmp/pana_DXYVPC/lib/api.dart:1:9) [223 more lines]

10/10 points: Package has an example

OK
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 does not support platform `Web`.

Because:

  • package:swift_server/api.dart that imports:
  • package:swift_server/queue.dart that imports:
  • package:swift_server/daemon.dart that imports:
  • package:swift_server/queue_processor.dart that imports:
  • package:swift_server/stats.dart that imports:
  • package:swift_server/tools.dart that imports:
  • package:mysql_client/mysql_client.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.
failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 28 issues. Showing the first 2:

WARNING: Dead code.

lib/api.dart:404:5

    ╷
404 │ ┌     return handleRequest(request).timeout(
405 │ │         new Duration(milliseconds: 500),
406 │ │         onTimeout: () => {
407 │ │           request.response.close()
408 │ │           //writeError(request, HttpStatus.requestTimeout, request.uri.toString())
409 │ │         },
410 │ └     );
    ╵

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

INFO: Use 'isNotEmpty' instead of 'length' to test whether the collection is empty.

lib/api.dart:224:9

    ╷
224 │     if (body.length > 0) {
    │         ^^^^^^^^^^^^^^^
    ╵

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

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
args ^2.3.0 2.5.0 2.5.0
dart_amqp ^0.2.3 0.2.5 0.2.5
mailer ^6.0.1 6.1.0 6.1.0
mysql_client ^0.0.27 0.0.27 0.0.27
path ^1.9.0 1.9.0 1.9.0
redis ^4.0.0 4.0.0 4.0.0
swift_composer ^0.8.1 0.8.1 0.8.1
yaml ^3.0.0 3.1.2 3.1.2
Transitive dependencies
Package Constraint Compatible Latest
_fe_analyzer_shared - 67.0.0 67.0.0
analyzer - 6.4.1 6.4.1
async - 2.11.0 2.11.0
buffer - 1.2.3 1.2.3
build - 2.4.1 2.4.1
build_config - 1.1.1 1.1.1
checked_yaml - 2.0.3 2.0.3
clock - 1.1.1 1.1.1
collection - 1.18.0 1.18.0
convert - 3.1.1 3.1.1
crypto - 3.0.3 3.0.3
dart_style - 2.3.6 2.3.6
file - 7.0.0 7.0.0
glob - 2.1.2 2.1.2
intl - 0.19.0 0.19.0
json_annotation - 4.8.1 4.8.1
logging - 1.2.0 1.2.0
meta - 1.14.0 1.14.0
mime - 1.0.5 1.0.5
package_config - 2.1.0 2.1.0
pub_semver - 2.1.4 2.1.4
pubspec_parse - 1.2.3 1.2.3
source_gen - 1.5.0 1.5.0
source_span - 1.10.0 1.10.0
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
tuple - 2.0.2 2.0.2
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.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Dart 3.3.3.

Check the analysis log for details.

0
likes
110
pub points
0%
popularity

Publisher

verified publisherswift.shop

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

args, dart_amqp, mailer, mysql_client, path, redis, swift_composer, yaml

More

Packages that depend on swift_server