lib/podliblint/plugin.rb in danger-podliblint-0.0.4 vs lib/podliblint/plugin.rb in danger-podliblint-0.0.5
- old
+ new
@@ -78,10 +78,10 @@
data = `#{podliblint_command}`
end
# Looking for something like:
# [!] MyProject did not pass validation, due to 1 error and 1 warning.
- lint_summary = data[/(?<=\[!\]\s).*/i]
+ lint_summary = data[/(?<=\[!\]\s).*(did not pass validation|Unable to find a podspec).*/i]
if lint_summary
fail("Pod lib lint: #{lint_summary} 🚨")
failures = data.scan(/(?<=ERROR\s\|\s).*|(?<=-\s)(?!NOTE|WARN|ERROR).*/i)
failures.each do |failure|