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
15 changes: 15 additions & 0 deletions commons/smf_danger/Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,18 @@ else

message(ticket_message)
end

## XCODE WARNINGS
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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this ignore a missing file in case of android?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question. @UrsKahmann might want to check that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added check so its only executed if the file exists