code_checker 0.6.0 code_checker: ^0.6.0 copied to clipboard
Static source code analytics tool that helps analyse and improve quality.
Code checker #
Static source code analytics tool that helps analyse and improve quality, inspired by Wrike Dart code metrics.
Usage #
Analyzer plugin #
The plugin for the Dart analyzer
provide information collected by metrics.
-
Add dependency to
pubspec.yaml
dev_dependencies: code_checker: ^0.6.0
-
Add configuration to
analysis_options.yaml
analyzer: plugins: - code_checker code_checker: metrics: maximum-nesting-level: 5 number-of-methods: 10 weight-of-class: 0.33 metrics-exclude: - test/** rules: - newline-before-return
Command line tool #
Full usage
Usage: checker [arguments] <directories>
-h, --help Print this usage information.
--maximum-nesting-level=<5> Maximum Nesting Level threshold
--number-of-methods=<10> Number of Methods threshold
--weight-of-class=<0.33> Weight Of a Class threshold
--root-folder=<./> Root folder
(defaults to current directory)
--exclude=<{/**.g.dart,/**.template.dart}> File paths in Glob syntax to be exclude
(defaults to "{/**.g.dart,/**.template.dart}")