| Index: utils/pub/validator/name.dart
|
| diff --git a/utils/pub/validator/name.dart b/utils/pub/validator/name.dart
|
| index 570f8b8302bce638dfe2f83b8ffbffb2a39fe525..37de043951d89e3af1c178805d54db6057376125 100644
|
| --- a/utils/pub/validator/name.dart
|
| +++ b/utils/pub/validator/name.dart
|
| @@ -31,7 +31,9 @@ class NameValidator extends Validator {
|
| return listDir(libDir, recursive: true);
|
| }).transform((files) {
|
| for (var file in files) {
|
| - if (file.contains("/src/")) continue;
|
| + // TODO(nweiz): Since `file` is absolute, this will break if the package
|
| + // itself is in a directory named "src".
|
| + if (splitPath(file).contains("src")) continue;
|
| if (new Path(file).extension != 'dart') continue;
|
| var libName = new Path(basename(file)).filenameWithoutExtension;
|
| _checkName(libName, 'The name of "$file", "$libName",');
|
|
|