Skip to content

oursky/dart_cognitive_complexity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages