Skip to content

Commit

Permalink
Dangerfile updates (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgriselli committed Jun 13, 2020
1 parent 1c4351e commit 89f25b7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Dangerfile
@@ -1,6 +1,6 @@
# Don't allow PRs without a description
if github.pr_body.length < 5
fail "Please provide a summary in the Pull Request description"
fail "Please provide a summary in the Pull Request description"
end

# Always ensure we assign someone
Expand All @@ -16,18 +16,14 @@ message("Thanks @#{github.pr_author}! :tada:") if github.pr_author != "marcosgri
swiftlint.verbose = true
swiftlint.config_file = './Example/.swiftlint.yml'
swiftlint.binary_path = './Example/Pods/SwiftLint/swiftlint'
# files_to_lint = (git.modified_files - git.deleted_files) + git.added_files
# files_to_lint.reject! { |f| f.start_with?('Pods/') || f.start_with?('ellaTests/') }
swiftlint.lint_files(
inline_mode: true,
additional_swiftlint_args: '--no-force-exclude'
)

# Don't allow XIBs with misplaced views
fail("XIBs must not have misplaced views") if `egrep -r 'misplaced="YES"' --include=\*.{xib,storyboard} Example/SwipeableTabBarController/`.length > 1

# Code coverage
xcov.report(
scheme: 'SwipeableTabBarController-Example',
workspace: './Example/SwipeableTabBarController.xcworkspace',
include_targets: 'SwipeableTabBarController.framework'
)

0 comments on commit 89f25b7

Please sign in to comment.