linesman 0.3.1 copy "linesman: ^0.3.1" to clipboard
linesman: ^0.3.1 copied to clipboard

Enforce boundaries between different parts of your codebase.

example/README.md

Linesman Example #

1. Add linesman as a dev dependency #

# pubspec.yaml
dev_dependencies:
  linesman: ^0.3.0

2. Enable the plugin #

# analysis_options.yaml
plugins:
  linesman: ^0.3.0

3. Configure rules #

# linesman.yaml

# Define reusable named groups of file patterns
groups:
  internal:
    - package:my_app/src/internal/**
    - package:my_app/src/private/**
  features:
    - feature_a/**
    - feature_b/**

rules:
  # Deny all files from importing internal code
  - type: deny
    source: "**"
    target: $internal

  # Except internal code can import other internal code
  - type: allow
    source: $internal
    target: $internal

  # Groups and inline patterns can be mixed
  - type: deny
    source:
      - $features
      - utils/**
    target: $internal
1
likes
0
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

Enforce boundaries between different parts of your codebase.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analysis_server_plugin, analyzer, collection, equatable, fast_immutable_collections, glob, path, yaml

More

Packages that depend on linesman