Commit 0d7f8c35 authored by Fabio Pelosin's avatar Fabio Pelosin

[Linter] Accept specs that only specify preserve_paths.

parent 5bffd10b
...@@ -301,7 +301,7 @@ module Pod ...@@ -301,7 +301,7 @@ module Pod
# attributes with multiplatform values # attributes with multiplatform values
return messages unless platform_valid? return messages unless platform_valid?
messages << "Missing source_files" if spec.source_files.empty? && spec.subspecs.empty? && spec.resources.empty? messages << "The spec appears to be empty (no source files, resources, or preserve paths)" if spec.source_files.empty? && spec.subspecs.empty? && spec.resources.empty? && spec.preserve_paths.empty?
messages += paths_starting_with_a_slash_errors messages += paths_starting_with_a_slash_errors
messages messages
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