mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Improve license script (#5345)
This commit is contained in:
parent
e0d4c46413
commit
32443810e7
@ -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':
|
||||
|
||||
@ -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' &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user