forked from struong9/RichTextView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDangerfile
More file actions
31 lines (27 loc) · 854 Bytes
/
Dangerfile
File metadata and controls
31 lines (27 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Folder structure check
if not git.added_files.empty?
message 'Please ensure that your new files respect the existing folder structure'
end
# Warn when there is a big PR
if git.lines_of_code > 500
warn 'Big PR, please split up. Alternatively mark as a risky change.'
end
# Swiftlint
swiftlint.lint_files fail_on_error: true
# XCode Test Coverage
xcov.report(
scheme: 'RichTextView',
workspace: './RichTextView.xcworkspace',
minimum_coverage_percentage: 80.0,
output_directory: '',
exclude_targets: 'Down.framework,
FBSnapshotTestCase.framework,
Nimble.framework,
Nimble_Snapshots.framework,
Quick.framework,
SnapKit.framework',
)
message("
If anything other than `RichTextView` appears in the code coverage section please add it
to the `exclude_targets` property of the `xcov.report()` function in the Dangerfile
")