angular_analyzer_plugin 0.0.17+6

AngularDart analyzer plugin #

A plugin for the Dart analyzer library package providing AngularDart support.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Use this package as a library

1. Depend on it

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


dependencies:
  angular_analyzer_plugin: ^0.0.17+6

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:angular_analyzer_plugin/angular_analyzer_plugin.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
96
Health:
Code health derived from static analysis. [more]
43
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
20
Overall:
Weighted score of the above. [more]
65
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:angular_analyzer_plugin/angular_analyzer_plugin.dart.

Health suggestions

Fix lib/src/summary/format.dart. (-48.66 points)

Analysis of lib/src/summary/format.dart reported 133 hints, including:

line 64 col 3: Avoid return types on setters.

line 71 col 3: Avoid return types on setters.

line 78 col 3: Avoid return types on setters.

line 85 col 3: Avoid return types on setters.

line 89 col 3: Prefer using /// for doc comments.

Fix lib/src/completion.dart. (-5.84 points)

Analysis of lib/src/completion.dart reported 12 hints, including:

line 264 col 25: Use = to separate a named parameter from its default value.

line 264 col 66: Use = to separate a named parameter from its default value.

line 271 col 21: Use = to separate a named parameter from its default value.

line 271 col 62: Use = to separate a named parameter from its default value.

line 295 col 21: Use = to separate a named parameter from its default value.

Fix lib/src/converter.dart. (-3.45 points)

Analysis of lib/src/converter.dart reported 7 hints, including:

line 499 col 34: Use = to separate a named parameter from its default value.

line 500 col 28: Use = to separate a named parameter from its default value.

line 501 col 26: Use = to separate a named parameter from its default value.

line 502 col 33: Use = to separate a named parameter from its default value.

line 503 col 34: Use = to separate a named parameter from its default value.

Fix additional 8 files with analysis or formatting issues. (-8.47 points)

Additional issues in the following files:

  • lib/src/angular_driver.dart (4 hints)
  • lib/src/directive_extraction.dart (4 hints)
  • lib/src/model.dart (4 hints)
  • lib/ast.dart (1 hint)
  • lib/errors.dart (1 hint)
  • lib/plugin.dart (1 hint)
  • lib/src/directive_linking.dart (1 hint)
  • lib/src/navigation.dart (1 hint)

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (analyzer, analyzer_plugin).

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

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 angular_analyzer_plugin.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.0.0 <3.0.0
analyzer 0.34.2 0.34.2 0.38.5
analyzer_plugin 0.0.1-alpha.6 0.0.1-alpha.6 0.2.1
angular_ast ^0.5.0 0.5.8 0.5.11
crypto >=1.1.1 <3.0.0 2.1.3
meta ^1.0.2 1.1.7
plugin ^0.2.0 0.2.0+3
yaml ^2.1.2 2.2.0
Transitive dependencies
args 1.5.2
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
csslib 0.15.0 0.16.1
front_end 0.1.9 0.1.27
glob 1.2.0
html 0.13.4+2 0.14.0+3
js 0.6.1+1
kernel 0.3.9 0.3.27
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
path 1.6.4
pedantic 1.8.0+1
pub_semver 1.4.2
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+12
Dev dependencies
mockito ^3.0.0
test ^1.2.0
test_reflective_loader ^0.1.0