Index: lib/src/validator/license.dart |
diff --git a/lib/src/validator/license.dart b/lib/src/validator/license.dart |
index 067765bb8d26de65eafc2f5ad4ddbaa4178d513b..601470636713f0fbac1061467b3eb274eb3805e4 100644 |
--- a/lib/src/validator/license.dart |
+++ b/lib/src/validator/license.dart |
@@ -20,7 +20,7 @@ class LicenseValidator extends Validator { |
return new Future.sync(() { |
var licenseLike = new RegExp( |
r"^([a-zA-Z0-9]+[-_])?(LICENSE|COPYING)(\..*)?$"); |
- if (entrypoint.root.listFiles(recursive: false) |
+ if (entrypoint.root.listFiles(recursive: false, useGitIgnore: true) |
.map(path.basename) |
.any(licenseLike.hasMatch)) { |
return; |