forked from marcosgriselli/SwipeableTabBarController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dangerfile
29 lines (24 loc) · 928 Bytes
/
Dangerfile
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
# Don't allow PRs without a description
if github.pr_body.length < 5
fail "Please provide a summary in the Pull Request description"
end
# Always ensure we assign someone
warn "This PR does not have any assignees yet." unless github.pr_json["assignee"]
# Warn when there is a big PR
warn("Big PR, try to keep changes smaller if you can") if git.lines_of_code > 500
# Thanks other people!
message("Thanks @#{github.pr_author}! :tada:") if github.pr_author != "marcosgriselli"
# Lint
swiftlint.verbose = true
swiftlint.config_file = './Example/.swiftlint.yml'
swiftlint.binary_path = './Example/Pods/SwiftLint/swiftlint'
swiftlint.lint_files(
inline_mode: true,
additional_swiftlint_args: '--no-force-exclude'
)
# Code coverage
xcov.report(
scheme: 'SwipeableTabBarController-Example',
workspace: './Example/SwipeableTabBarController.xcworkspace',
include_targets: 'SwipeableTabBarController.framework'
)