crossdart 0.4.6

  • README.md
  • Installing
  • Versions
  • 30

Crossdart

Note: If you're looking the source code for Crossdart Chrome Extension, it's there: https://github.com/astashov/crossdart-chrome-extension

Analyzes source code of a given project, and emits one of the following:

  • HTML pages with hyperlinked source code of the project.
  • JSON file with the analysis data.
  • Github version of the JSON file with the analysis data (for Crossdart Chrome Extension)

Installation

Install it via pub global activate crossdart.

Usage

Run it as pub global run crossdart.

Required arguments:

  • --input - path to your project
  • --dart-sdk - path to Dart SDK

Optional arguments:

  • --output - where to place the output (HTML or JSON). Will be the same as --input if omitted.
  • --hosted-url - URL of Crossdart's site. https://www.crossdart.info by default.
  • --url-path-prefix - path prefix on the Crossdart's site. p by default.
  • --output-format - output format. Could be github, html or json. github by default.

Example

$ pub global run crossdart --input=/home/john/my_dart_project --dart-sdk=/usr/lib/dart
$ pub global run crossdart --input=/home/john/my_dart_project --dart-sdk=/usr/lib/dart --output=/home/john/crossdart-output --output-format=html

Contributing

Please use Github's bug tracker for bugs. Pull Requests are welcome.

1. Depend on it

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


dependencies:
  crossdart: "^0.4.6"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

Version Uploaded Documentation Archive
0.4.6 Sep 7, 2016 Go to the documentation of crossdart 0.4.6 Download crossdart 0.4.6 archive
0.4.5 Aug 1, 2016 Go to the documentation of crossdart 0.4.5 Download crossdart 0.4.5 archive
0.4.4 Aug 1, 2016 Go to the documentation of crossdart 0.4.4 Download crossdart 0.4.4 archive
0.4.3 Jul 31, 2016 Go to the documentation of crossdart 0.4.3 Download crossdart 0.4.3 archive
0.4.2 Jun 7, 2016 Go to the documentation of crossdart 0.4.2 Download crossdart 0.4.2 archive
0.4.1 Jun 6, 2016 Go to the documentation of crossdart 0.4.1 Download crossdart 0.4.1 archive
0.4.0 Jun 6, 2016 Go to the documentation of crossdart 0.4.0 Download crossdart 0.4.0 archive
0.3.1 Jun 3, 2016 Go to the documentation of crossdart 0.3.1 Download crossdart 0.3.1 archive
0.3.0 Jun 3, 2016 Go to the documentation of crossdart 0.3.0 Download crossdart 0.3.0 archive
0.2.7 Jun 2, 2016 Go to the documentation of crossdart 0.2.7 Download crossdart 0.2.7 archive

All 30 versions...

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 16, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
74 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
38 / 100
Overall score:
Weighted score of the above. [more]
30

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Suggestions

  • Fix lib/src/html_package_generator.dart.

    Strong-mode analysis of lib/src/html_package_generator.dart failed with the following error:

    line: 234 col: 18
    The method 'compareTo' isn't defined for the class 'Object'.

  • Fix lib/src/util/iterable.dart.

    Strong-mode analysis of lib/src/util/iterable.dart failed with the following error:

    line: 40 col: 17
    The method 'add' isn't defined for the class 'Iterable'.

  • Fix further 4 Dart files.

    Similar analysis of the following files failed:

    • lib/src/generator/json_generator.dart
    • lib/src/parser/compilation_unit_resolver.dart
    • lib/src/environment.dart
    • lib/src/version.dart
  • Maintain CHANGELOG.md.

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

  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 3 error(s) and 0 warning(s).

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

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

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.16.0 <2.0.0
analyzer ^0.28.1 0.28.1 0.31.1
args ^0.13.4+2 0.13.7 1.3.0
collection ^1.8.0 1.14.5
http ^0.11.3+7 0.11.3+16
intl ^0.13.0 0.13.1 0.15.2
logging ^0.11.3 0.11.3+1
package_config ^0.1.3 0.1.5 1.0.3
pub_semver ^1.2.4 1.3.2
resource ^1.1.0 1.1.0 2.1.2
yaml ^2.1.9 2.1.13
Transitive dependencies
async 2.0.3 2.0.4
barback 0.15.2+14
charcode 1.1.1
convert 2.0.1
crypto 2.0.2+1
csslib 0.14.1
glob 1.1.5
html 0.13.2+2
http_parser 3.1.1
isolate 0.2.3 1.1.0
matcher 0.12.1+4
meta 1.1.2
path 1.5.1
petitparser 1.7.0
plugin 0.2.0+2
pool 1.3.4
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4
watcher 0.9.7+7
Dev dependencies
unittest any