avoid-banned-file-names
added in: 1.4.0
warning
Configure file names that you want to ban.
⚙️ Config
Set entries
(default is empty) to configure a list of regular expressions for file names to ban.
dart_code_metrics:
...
rules:
...
- avoid-banned-file-names:
entries:
- .*example.dart
note
This rule requires configuration in order to highlight any issues.
Example
❌ Bad:
some_example.dart
void main () { // LINT
// ...
}
✅ Good:
another_file.dart
void main () {
// ...
}