Skip to content

Commit

Permalink
Improve license script (flutter#5345)
Browse files Browse the repository at this point in the history
  • Loading branch information
abarth authored May 23, 2018
1 parent e0d4c46 commit 3244381
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tools/licenses/lib/licenses.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -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':
Expand Down
3 changes: 2 additions & 1 deletion tools/licenses/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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' &&
Expand Down

0 comments on commit 3244381

Please sign in to comment.