102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# File 'lib/license_scout/config.rb', line 102
def validate!
if !allowed_licenses.empty? && !flagged_licenses.empty?
raise LicenseScout::Exceptions::ConfigError.new("You may specify a list of licenses to allow or flag. You may not specify both.")
end
if (allowed_licenses.empty? && flagged_licenses.empty?) && dependency_exceptions?
LicenseScout::Log.warn("You have specified one or more dependency exceptions, but no allowed or flagged licenses. License Scout will ignore the depdendency exceptions.")
end
directories.each do |dir|
unless File.directory?(File.expand_path(dir))
raise LicenseScout::Exceptions::ConfigError.new("The '#{dir}' directory could not be found.")
end
end
end
|