diff --git a/commons/smf_danger/Dangerfile b/commons/smf_danger/Dangerfile index 8f9f4b93..1c18c23f 100644 --- a/commons/smf_danger/Dangerfile +++ b/commons/smf_danger/Dangerfile @@ -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