lint_barrel_self_import 0.1.1 copy "lint_barrel_self_import: ^0.1.1" to clipboard
lint_barrel_self_import: ^0.1.1 copied to clipboard

A custom lint rule to avoid importing a package's own barrel file from within that package.

example/lint_barrel_self_import_example.dart

// Example usage of lint_barrel_self_import
// 
// This file demonstrates how the lint rule works.
// Run `dart analyze` to see the warnings in action.

import 'lib/src/good_example.dart';

void main() {
  print('Running lint_barrel_self_import example...');
  print('Check lib/src/bad_example.dart to see lint warnings');
  print('Check lib/src/good_example.dart to see correct usage');
  
  demonstrateGoodImports();
}
0
likes
120
points
16
downloads

Publisher

verified publishersotaatos.dev

Weekly Downloads

A custom lint rule to avoid importing a package's own barrel file from within that package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, custom_lint_builder, path

More

Packages that depend on lint_barrel_self_import