mustache4dart2 0.1.0

Dart native

A mustache implementation for the Dart (2.x) language

0
likes
55 / 110
pub points
56 %
popularity

We analyzed this package on Sep 25, 2020, and awarded it 55 pub points (of a possible 110):

Follow Dart file conventions
5 / 20

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

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.

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 5 links are insecure.

README.md:4:31

  ╷
4 │ <p>A simple implementation of <a href="http://mustache.github.com/">Mustache</a> for the
  │                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

Use https URLs instead.

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
0 / 20

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

0/10 points: 20% or more of the public API has dartdoc comments

  • 4 out of 55 API elements (7.3 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

Support multiple platforms
10 / 20

10/20 points: Supports 1 of 2 possible platforms (native, js)

Consider supporting multiple platforms:

Package not compatible with runtime js

Because:

  • package:mustache4dart2/mustache4dart2.dart that imports:
  • package:mustache4dart2/mustache_context.dart that imports:
  • package:mustache4dart2/src/mirrors.dart that imports:
  • dart:mirrors
Pass static analysis
20 / 30

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

Found 89 issues. Showing the first 2:

INFO: Use `=` to separate a named parameter from its default value.

lib/mustache_context.dart:15:61

   ╷
15 │       {MustacheContext parent, assumeNullNonExistingProperty: true}) {
   │                                                             ^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/mustache_context.dart

INFO: Unnecessary new keyword.

lib/mustache_context.dart:37:12

   ╷
37 │       return new _IterableMustacheContextDecorator(obj,
   │ ┌────────────^
38 │ │         parent: parent,
39 │ │         assumeNullNonExistingProperty: assumeNullNonExistingProperty);
   │ └─────────────────────────────────────────────────────────────────────^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/mustache_context.dart

Support up-to-date dependencies
20 / 20

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

No dependencies.

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

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

0
likes
55
pub points
56%
popularity

A mustache implementation for the Dart (2.x) language

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

ozonesurfer68@gmail.com

License

Apache 2.0 (LICENSE.txt)

More

Packages that depend on mustache4dart2