messages<<"Missing or invalid source: #{spec.source}"unlesssource_valid?
# attributes with multiplatform values
returnmessagesunlessplatform_valid?
messages<<"The spec appears to be empty (no source files, resources, or preserve paths)"ifspec.source_files.empty?&&spec.subspecs.empty?&&spec.resources.empty?&&spec.preserve_paths.empty?
||l.include?('note: ')&&(l!~/expanded from macro/)
end
selected_lines.mapdo|l|
new=l.gsub(/\/tmp\/CocoaPods\/Lint\/Pods\//,'')# Remove the unnecessary tmp path
new.gsub!(/^ */,' ')# Remove indentation
"XCODEBUILD > "<<new# Mark
end
end
# It checks that every file pattern specified in a spec yields
# at least one file. It requires the pods to be alredy present
# in the current working directory under Pods/spec.name.
#
# @return [Array<String>]
#
deffile_patterns_errors
messages=[]
messages<<"The sources did not match any file"if!spec.source_files.empty?&&@pod.source_files.empty?
messages<<"The resources did not match any file"if!spec.resources.empty?&&@pod.resource_files.empty?
messages<<"The preserve_paths did not match any file"if!spec.preserve_paths.empty?&&@pod.preserve_files.empty?
messages<<"The exclude_header_search_paths did not match any file"if!spec.exclude_header_search_paths.empty?&&@pod.headers_excluded_from_search_paths.empty?
messages<<"Missing or invalid source: #{spec.source}"unlesssource_valid?
# attributes with multiplatform values
returnmessagesunlessplatform_valid?
messages<<"The spec appears to be empty (no source files, resources, or preserve paths)"ifspec.source_files.empty?&&spec.subspecs.empty?&&spec.resources.empty?&&spec.preserve_paths.empty?
||l.include?('note: ')&&(l!~/expanded from macro/)
end
selected_lines.mapdo|l|
new=l.gsub(/\/tmp\/CocoaPods\/Lint\/Pods\//,'')# Remove the unnecessary tmp path
new.gsub!(/^ */,' ')# Remove indentation
"XCODEBUILD > "<<new# Mark
end
end
# It checks that every file pattern specified in a spec yields
# at least one file. It requires the pods to be alredy present
# in the current working directory under Pods/spec.name.
#
# @return [Array<String>]
#
deffile_patterns_errors
messages=[]
messages<<"The sources did not match any file"if!@spec.source_files.empty?&&@pod.source_files.empty?
messages<<"The resources did not match any file"if!@spec.resources.empty?&&@pod.resource_files.empty?
messages<<"The preserve_paths did not match any file"if!@spec.preserve_paths.empty?&&@pod.preserve_files.empty?
messages<<"The exclude_header_search_paths did not match any file"if!@spec.exclude_header_search_paths.empty?&&@pod.headers_excluded_from_search_paths.empty?