crossdart 0.4.6

  • README.md
  • Installing
  • Versions
  • 25

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.

Use this package as a library

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 flutter 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

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

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

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

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Suggestions

  • Maintain CHANGELOG.md.

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

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 15 errors 33 hints.

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

    line: 57 col: 49
    The argument type 'List' can't be assigned to the parameter type 'Iterable<Package>'.

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

    line: 78 col: 29
    A value of type 'List<Map<String, String>>' can't be assigned to a variable of type 'int'.

    Similar analysis of the following files failed:

    • lib/src/html_package_generator.dart (error)
    • lib/src/parser/compilation_unit_resolver.dart (error)
    • lib/src/util/iterable.dart (error)
    • lib/src/version.dart (error)
    • lib/src/args.dart (hint)
    • lib/src/cache.dart (hint)
    • lib/src/config.dart (hint)
    • lib/src/entity.dart (hint)
    • lib/src/google_analytics.dart (hint)
    • lib/src/location.dart (hint)
    • lib/src/logging.dart (hint)
    • lib/src/package.dart (hint)
    • lib/src/package_info.dart (hint)
    • lib/src/parsed_data.dart (hint)
    • lib/src/parser.dart (hint)
    • lib/src/parser/ast_visitor.dart (hint)
    • lib/src/util.dart (hint)
    • lib/src/util/map.dart (hint)
  • Package is getting outdated.

    The package was released 92 weeks ago.

  • 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.32.1
args ^0.13.4+2 0.13.7 1.4.3
collection ^1.8.0 1.14.10
http ^0.11.3+7 0.11.3+16
intl ^0.13.0 0.13.1 0.15.6
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.4.1
resource ^1.1.0 1.1.0 2.1.4
yaml ^2.1.9 2.1.14
Transitive dependencies
async 2.0.7
barback 0.15.2+16
charcode 1.1.1
convert 2.0.1
crypto 2.0.5
csslib 0.14.4
glob 1.1.5
html 0.13.3+1
http_parser 3.1.2
isolate 0.2.3 2.0.1
matcher 0.12.3
meta 1.1.5
path 1.6.1
petitparser 1.7.6
plugin 0.2.0+2
pool 1.3.5
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+8
Dev dependencies
unittest any