match-lib-folder-structure
Warns when the file path in the test folder does not match the implementation file path in the lib folder.
note
This rule highlights test files that import implementation files with the same name (without the _test
suffix).
Example
❌ Bad:
// package/lib/src/my_file.dart
// package/test/some_folder/my_file_test.dart // LINT
✅ Good:
// package/lib/src/my_file.dart
// package/test/src/my_file_test.dart