Commit 63c5e456 authored by Fabio Pelosin's avatar Fabio Pelosin

[Linter] Don't require a license file if the text is specified.

parent e42c614b
...@@ -427,7 +427,9 @@ module Pod ...@@ -427,7 +427,9 @@ module Pod
def file_patterns_warnings def file_patterns_warnings
messages = [] messages = []
messages << "Unable to find a license file" unless @pod.license_file || @spec.license && @spec.license[:type] == 'Public Domain' unless @pod.license_file || @spec.license && ( @spec.license[:type] == 'Public Domain' || @spec.license[:text] )
messages << "Unable to find a license file"
end
messages messages
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment