jugger_generator 1.1.0+2-alpha

  • Readme
  • Changelog
  • Installing
  • 44

jugger_generator #

Generates dependency injection code using the jugger package.

Run generation command:

flutter packages pub run build_runner build

Documantation available this.

1.1.0+2-alpha #

  • fix generation bug with @Named annotation

1.1.0+1-alpha #

  • Ignore files of tests

1.1.0-alpha #

  • Add annotations: ComponentBuilder, Named. Improve generation

1.0.0-alpha #

  • First release

Use this package as a library

1. Depend on it

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


dependencies:
  jugger_generator: ^1.1.0+2-alpha

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:jugger_generator/jugger_generator.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
1
Health:
Code health derived from static analysis. [more]
84
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
44
Learn more about scoring.

We analyzed this package on Jul 2, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.9+1

Analysis suggestions

Package not compatible with runtime flutter-web of web

Because of the import of dart:io via the import chain package:jugger_generator/jugger_generator.dart->package:jugger_generator/src/component_builder.dart->package:jugger_generator/src/visitors.dart->package:jugger_generator/src/utils.dart->package:jugger_generator/src/classes.dart->package:analyzer/dart/element/element.dart->package:analyzer/src/task/api/model.dart->package:analyzer/src/generated/source.dart->package:analyzer/src/generated/source_io.dart->package:analyzer/src/generated/java_io.dart->dart:io

Package not compatible with runtime web

Because of the import of dart:io via the import chain package:jugger_generator/jugger_generator.dart->package:jugger_generator/src/component_builder.dart->package:jugger_generator/src/visitors.dart->package:jugger_generator/src/utils.dart->package:jugger_generator/src/classes.dart->package:analyzer/dart/element/element.dart->package:analyzer/src/task/api/model.dart->package:analyzer/src/generated/source.dart->package:analyzer/src/generated/source_io.dart->package:analyzer/src/generated/java_io.dart->dart:io

Health issues and suggestions

Document public APIs. (-1 points)

2 out of 2 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/component_builder.dart. (-6.78 points)

Analysis of lib/src/component_builder.dart reported 14 hints, including:

line 27 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 136 col 30: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 141 col 39: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 174 col 49: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 197 col 57: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

Fix lib/src/graph.dart. (-5.36 points)

Analysis of lib/src/graph.dart reported 11 hints, including:

line 6 col 8: Unused import: 'package:jugger_generator/src/classes.dart'.

line 142 col 60: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 185 col 39: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 185 col 52: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 253 col 27: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

Fix lib/src/visitors.dart. (-1.49 points)

Analysis of lib/src/visitors.dart reported 3 hints:

line 107 col 28: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 181 col 42: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 256 col 28: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

Fix lib/src/classes.dart. (-1 points)

Analysis of lib/src/classes.dart reported 2 hints:

line 91 col 27: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 95 col 44: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

Fix lib/src/utils.dart. (-1 points)

Analysis of lib/src/utils.dart reported 2 hints:

line 71 col 58: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 79 col 62: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and jugger_generator.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
analyzer ^0.39.1 0.39.11
build ^1.2.1 1.3.0
code_builder ^3.2.0 3.3.0
dart_style ^1.3.3 1.3.6
jugger ^1.1.0-alpha 1.1.0-alpha
meta ^1.1.7 1.1.8 1.2.0
quiver ^2.0.5 2.1.3
Transitive dependencies
_fe_analyzer_shared 5.0.0
args 1.6.0
async 2.4.1
built_collection 4.3.2
built_value 7.1.0
charcode 1.1.3
collection 1.14.13
convert 2.1.1
crypto 2.1.5
csslib 0.16.1
fixnum 0.10.11
glob 1.2.0
html 0.14.0+3
js 0.6.2
logging 0.11.4
matcher 0.12.8
node_interop 1.1.1
node_io 1.1.1
package_config 1.9.3
path 1.7.0
pedantic 1.9.0 1.9.1
pub_semver 1.4.4
source_span 1.7.0
stack_trace 1.9.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.2.0
watcher 0.9.7+15
yaml 2.2.1