Skip to main content

avoid-banned-file-names

added in: 1.4.0
warning
⚙️

Configure file names that you want to ban.

⚙️ Config example

info

entries support regular expressions.

dart_code_metrics:
...
rules:
...
- avoid-banned-file-names:
entries:
- .*example.dart

Example

❌ Bad:

some_example.dart
void main () { // LINT
// ...
}

✅ Good:

another_file.dart
void main () {
// ...
}