diff --git a/tools/licenses/lib/licenses.dart b/tools/licenses/lib/licenses.dart index 5d442efe550c0b8de4e895c10b7521c037d36d1a..441bc5cd7ee1e2ca35ee63a4b855dd59807cf45e 100644 --- a/tools/licenses/lib/licenses.dart +++ b/tools/licenses/lib/licenses.dart @@ -19,6 +19,7 @@ LicenseType convertLicenseNameToType(String name) { switch (name) { case 'Apache': case 'apache-license-2.0': + case 'LICENSE-APACHE-2.0.txt': return LicenseType.apache; case 'BSD': case 'BSD.txt': @@ -38,6 +39,8 @@ LicenseType convertLicenseNameToType(String name) { return LicenseType.apsl; case 'OpenSSL': return LicenseType.openssl; + case 'LICENSE.MPLv2': + return LicenseType.mpl; // common file names that don't say what the type is case 'COPYING': case 'COPYING.txt': diff --git a/tools/licenses/lib/main.dart b/tools/licenses/lib/main.dart index 59443943a36831dcc3835c93901e57af86b2bff8..36c650cd46f8901062a442399a5bf822822cb8f6 100644 --- a/tools/licenses/lib/main.dart +++ b/tools/licenses/lib/main.dart @@ -882,7 +882,8 @@ class RepositoryDirectory extends RepositoryEntry implements LicenseSource { } bool shouldRecurse(fs.IoNode entry) { - return entry.name != '.git' && + return entry.name != '.cipd' && + entry.name != '.git' && entry.name != '.github' && entry.name != '.gitignore' && entry.name != 'test' &&