Skip to content

decoch/lint_strict_dependencies

Repository files navigation

lint_strict_dependencies

Simple linter of strict dependencies for Flutter apps.

Usage

Install

dev_dependencies:
  lint_strict_dependencies: any

Config

To use lint_strict_dependencies, you need adding setting to your strict_dependencies.yaml.

rules:
  - module: "ui/components"
    allowReferenceFrom:
      - "ui/pages"
    allowSameModule: true
  - module: "view_models"
    allowReferenceFrom:
      - "ui/pages"
    allowSameModule: false
  - module: "models"
    allowReferenceFrom:
      - "view_models"
      - "ui/pages"
    allowSameModule: false

Execute lint

flutter pub run lint_strict_dependencies:main

About

Linter for strict dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages