# File lib/licensee/project.rb, line 23 def license_file return @license_file if defined? @license_file @license_file = begin license_file = license_from_file { |n| LicenseFile.name_score(n) } return license_file unless license_file && license_file.license # Special case LGPL, which actually lives in LICENSE.lesser, per the # license instructions. See https://git.io/viwyK lesser = if license_file.license.gpl? license_from_file { |file| LicenseFile.lesser_gpl_score(file) } end lesser || license_file end end