kerekewere 0.0.3 copy "kerekewere: ^0.0.3" to clipboard
kerekewere: ^0.0.3 copied to clipboard

discontinuedreplaced by: subpackage_lint

A set of linting rules for clean code structure

Kerekewere #

pub package

A custom lint package for Dart.

Features #

Warns about using src/ in import paths for subpackages.

Getting started #

Add the following to your pubspec.yaml file:

dev_dependencies:
  custom_lint: 
  kerekewere:

Add the following to the analysis_options.yaml file:

analyzer:
  plugins:
    - custom_lint

Exclude files #

To exclude files from being linted, add the following to the analysis_options.yaml file:

custom_lint:
  rules:
    - avoid_src_import_from_other_subpackage:
      exclude:
        - "*_test.dart"
        - "*.g.dart"
    - avoid_src_import_from_same_package:
      exclude:
        - "*_test.dart"
    - avoid_package_import_for_same_package:
      exclude:
        - "*_test.dart"

Currently, you can only exclude files using glob patterns and not specify with absolute paths. For example: lib/my/path/*.g.dart will not work.

1
likes
120
points
3
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A set of linting rules for clean code structure

License

MIT (license)

Dependencies

analyzer, custom_lint_builder, glob

More

Packages that depend on kerekewere