dart_cognitive_complexity 1.0.1 copy "dart_cognitive_complexity: ^1.0.1" to clipboard
dart_cognitive_complexity: ^1.0.1 copied to clipboard

A cognitive complexity linter for Dart libraries or applications.

dart_cognitive_complexity #

A cognitive complexity linter for Dart libraries or applications.

This plugin is based on custom_lint with reference from eslint-plugin-sonarjs.

Install #

name: example_app

dev_dependencies:
  custom_lint:
  dart_cognitive_complexity:
analyzer:
  plugins:
    - custom_lint

Config #

analyzer:
  plugins:
    - custom_lint

custom_lint:
  rules:
    - cognitive_complexity:
      threshold: 15 # default 10
      severity: info # default error

Example #

dart run custom_lint --no-fatal-infos --no-fatal-warnings

For detail usages, please refer to custom_lint usages.

5
likes
80
points
772
downloads

Publisher

verified publisheroursky.com

Weekly Downloads

A cognitive complexity linter for Dart libraries or applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

LGPL-3.0 (license)

Dependencies

analyzer, analyzer_plugin, custom_lint_builder

More

Packages that depend on dart_cognitive_complexity