Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMFIT-984: Adding Xcode Warnings to PR #119

Merged
merged 17 commits into from
Apr 7, 2020
18 changes: 18 additions & 0 deletions commons/smf_danger/Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,21 @@ else

message(ticket_message)
end

## XCODE WARNINGS

if File.exist?('build/reports/errors.json')
xcode_summary.inline_mode = true
xcode_summary.ignored_files = 'Pods/**'

xcode_summary.ignored_results { |result|

if result.location.nil?
result.message.scan(/.*\.swift.*/).empty?
else
File.fnmatch('*[^.swift]', result.location.file_path)
end
}

xcode_summary.report 'build/reports/errors.json'
end