dart_code_metrics 1.3.1 copy "dart_code_metrics: ^1.3.1" to clipboard
dart_code_metrics: ^1.3.1 copied to clipboard

discontinued
outdated

Command line tool which helps to improve code quality. Reports cyclomatic complexity and method length in plain console, JSON, HTML and Codeclimate formats

Build Status Pub Version

The Dart command line tool which helps to improve code quality #

Reports:

  • Cyclomatic complexity of methods
  • Too long methods
  • Number of Arguments

Output formats:

  • Plain terminal
  • JSON
  • HTML
  • Codeclimate

Simple usage: #

pub global activate dart_code_metrics
metrics lib

Full usage: #

Usage: metrics [options...] <directories>
-h, --help                                             Print this usage information.
-r, --reporter=<console>                               The format of the output of the analysis
                                                       [console (default), json, html, codeclimate]

    --cyclomatic-complexity=<20>                       Cyclomatic complexity threshold
                                                       (defaults to "20")

    --lines-of-code=<50>                               Lines of code threshold
                                                       (defaults to "50")

    --number-of-arguments=<4>                          Number of arguments threshold
                                                       (defaults to "4")

    --root-folder=<./>                                 Root folder
                                                       (defaults to current directory)

    --ignore-files=<{/**.g.dart,/**.template.dart}>    Filepaths in Glob syntax to be ignored
                                                       (defaults to "{/**.g.dart,/**.template.dart}")

    --verbose

Use as library #

See example/example.dart

932
likes
0
pub points
99%
popularity

Publisher

verified publisherdcm.dev

Command line tool which helps to improve code quality. Reports cyclomatic complexity and method length in plain console, JSON, HTML and Codeclimate formats

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, ansicolor, args, built_collection, crypto, glob, html, meta, path, quiver, resource

More

Packages that depend on dart_code_metrics