core_mvc 0.1.1

  • Installing
  • Versions
  • 0

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  core_mvc: ^0.1.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:core_mvc/core_mvc.dart';
  
Version Uploaded Documentation Archive
0.1.1 Apr 5, 2016 Go to the documentation of core_mvc 0.1.1 Download core_mvc 0.1.1 archive
0.1.0 Mar 8, 2016 Go to the documentation of core_mvc 0.1.0 Download core_mvc 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
0
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Health issues and suggestions

Fix lib/router.dart. (-68.99 points)

Analysis of lib/router.dart failed with 4 errors, 4 hints, including:

line 23 col 52: The method 'isSubclassOf' isn't defined for the class 'DeclarationMirror'.

line 27 col 43: The getter 'instanceMembers' isn't defined for the class 'DeclarationMirror'.

line 39 col 10: The return type 'List' isn't a 'Iterable<Route>', as defined by the method '_getLibraryRoutes'.

line 49 col 39: The return type 'Symbol' isn't a 'LibraryMirror', as defined by anonymous closure.

line 4 col 34: The name Stream is shown, but not used.

Fix lib/src/logger/json_logger.dart. (-57.81 points)

Analysis of lib/src/logger/json_logger.dart failed with 3 errors:

line 11 col 9: super call must be last in an initializer list (see https://goo.gl/EY6hDP): 'super(level: level, group: group)'.

line 19 col 17: Undefined name 'JSON'.

line 31 col 18: Undefined name 'JSON'.

Fix lib/src/application/default_application.dart. (-26.86 points)

Analysis of lib/src/application/default_application.dart failed with 1 error, 5 hints, including:

line 34 col 3: Invalid override. The type of 'DefaultApplication.initializeServer' ('() → Future<dynamic>') isn't a subtype of 'Application.initializeServer' ('() → Future<HttpServer>').

line 14 col 51: 'ANY_IP_V4' is deprecated and shouldn't be used.

line 42 col 21: 'SIGINT' is deprecated and shouldn't be used.

line 65 col 33: 'INTERNAL_SERVER_ERROR' is deprecated and shouldn't be used.

line 82 col 41: 'GATEWAY_TIMEOUT' is deprecated and shouldn't be used.

Fix additional 20 files with analysis or formatting issues. (-104.75 points)

Additional issues in the following files:

  • lib/src/router/route.dart (1 error, 1 hint)
  • lib/src/type/enum.dart (1 error, 1 hint)
  • lib/src/action_result/json_result.dart (1 error)
  • lib/src/logger/tty_logger.dart (1 error)
  • lib/logger.dart (3 hints)
  • lib/src/http/http_verb.dart (2 hints)
  • lib/action_result.dart (1 hint)
  • lib/core_mvc.dart (1 hint)
  • lib/src/router/router.dart (1 hint)
  • bin/demo.dart (Run dartfmt to format bin/demo.dart.)
  • lib/application.dart (Run dartfmt to format lib/application.dart.)
  • lib/metadata.dart (Run dartfmt to format lib/metadata.dart.)
  • lib/src/action_filter/action_filter.dart (Run dartfmt to format lib/src/action_filter/action_filter.dart.)
  • lib/src/action_filter/authentication_filter.dart (Run dartfmt to format lib/src/action_filter/authentication_filter.dart.)
  • lib/src/action_filter/authorization_filter.dart (Run dartfmt to format lib/src/action_filter/authorization_filter.dart.)
  • lib/src/action_filter/exceptions.dart (Run dartfmt to format lib/src/action_filter/exceptions.dart.)
  • lib/src/action_filter/filter_context.dart (Run dartfmt to format lib/src/action_filter/filter_context.dart.)
  • lib/src/action_result/action_result.dart (Run dartfmt to format lib/src/action_result/action_result.dart.)
  • lib/src/action_result/result_context.dart (Run dartfmt to format lib/src/action_result/result_context.dart.)
  • lib/src/action_result/string_result.dart (Run dartfmt to format lib/src/action_result/string_result.dart.)

Maintenance issues and suggestions

Add SDK constraint in pubspec.yaml. (-50 points)

For information about setting SDK constraint, please see https://www.dartlang.org/tools/pub/pubspec#sdk-constraints.

Fix platform conflicts. (-20 points)

Low code quality prevents platform classification.

Package is too old. (-100 points)

The package was released more than two years ago.

Maintain README.md. (-30 points)

Readme should inform others about your project, what it does, and how they can use it.

Maintain CHANGELOG.md. (-20 points)

Changelog entries help clients to follow the progress in your code.

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use core_mvc.dart.

Dependencies

Package Constraint Resolved Available
Dev dependencies
mockito any
test any