protic 0.1.2

  • Installing
  • Versions
  • 8

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate protic

2. Use it

The package has the following executables:


$ protic

Use this package as a library

1. Depend on it

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


dependencies:
  protic: ^0.1.2

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:protic/protic.dart';
  
Version Uploaded Documentation Archive
0.1.2 Oct 8, 2018 Go to the documentation of protic 0.1.2 Download protic 0.1.2 archive
0.1.1 Jun 17, 2018 Go to the documentation of protic 0.1.1 Download protic 0.1.1 archive
0.1.0 Mar 11, 2018 Go to the documentation of protic 0.1.0 Download protic 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
9
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
20
Overall:
Weighted score of the above. [more]
8
Learn more about scoring.

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

  • Dart: 2.0.0
  • pana: 0.12.5

Platforms

Detected platforms: unsure

Low code quality prevents platform classification.

Health issues and suggestions

Fix lib/src/js/entrypoint.dart. (-99.90 points)

Analysis of lib/src/js/entrypoint.dart failed with 24 errors, including:

line 1 col 1: Undefined name 'JS' used as an annotation.

line 4 col 8: Target of URI doesn't exist: 'package:js/js.dart'.

line 5 col 8: Target of URI doesn't exist: 'package:js/js_util.dart'.

line 11 col 1: Undefined name 'JS' used as an annotation.

line 16 col 1: Undefined name 'JS' used as an annotation.

Fix lib/src/js/node_io.dart. (-92.49 points)

Analysis of lib/src/js/node_io.dart failed with 9 errors, including:

line 1 col 1: Undefined name 'JS' used as an annotation.

line 4 col 8: Target of URI doesn't exist: 'package:js/js.dart'.

line 6 col 1: Undefined name 'JS' used as an annotation.

line 9 col 1: Undefined name 'JS' used as an annotation.

line 12 col 1: Undefined name 'JS' used as an annotation.

Fix lib/src/expression.dart. (-2.96 points)

Analysis of lib/src/expression.dart reported 6 hints, including:

line 28 col 16: Always override hashCode if overriding ==.

line 48 col 16: Always override hashCode if overriding ==.

line 67 col 16: Always override hashCode if overriding ==.

line 79 col 16: Always override hashCode if overriding ==.

line 94 col 16: Always override hashCode if overriding ==.

Fix additional 6 files with analysis or formatting issues. (-1 points)

Additional issues in the following files:

  • lib/src/compiler.dart (1 hint)
  • lib/src/driver.dart (1 hint)
  • lib/src/api.dart (Run dartfmt to format lib/src/api.dart.)
  • lib/src/html_parsing.dart (Run dartfmt to format lib/src/html_parsing.dart.)
  • lib/src/platform.dart (Run dartfmt to format lib/src/platform.dart.)
  • lib/src/platform/node.dart (Run dartfmt to format lib/src/platform/node.dart.)

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Low code quality prevents platform classification.

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.

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 protic.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
args ^1.4.4 1.5.0
collection ^1.14.11 1.14.11
html ^0.13.3 0.13.3+3
petitparser ^2.0.0 2.0.2
source_maps ^0.10.7 0.10.8
source_span ^1.4.1 1.4.1
Transitive dependencies
charcode 1.1.2
csslib 0.14.6
logging 0.11.3+2
path 1.6.2
utf 0.9.0+5
Dev dependencies
js ^0.6.1
node_preamble ^1.4.4
test ^1.3.0