Skip to content

Commit

Permalink
Fix rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lagoan committed Aug 10, 2020
1 parent a1d429c commit ccdc292
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ end
warn('Please add a detailed summary in the description.') if github.pr_body.length < 5

# Let people say that this isn't worth a CHANGELOG entry in the PR if they choose
declared_trivial = (github.pr_title + github.pr_body).include?("#trivial") || !has_app_changes
declared_trivial = (github.pr_title + github.pr_body).include?('#trivial') || !has_app_changes

if !git.modified_files.include?("CHANGELOG.md") && !declared_trivial
fail("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/ualbertalib/jupiter/blob/master/CHANGELOG.md).", sticky: false)
if !git.modified_files.include?('CHANGELOG.md') && !declared_trivial
raise("Please include a CHANGELOG entry. \nYou can find it at " \
'[CHANGELOG.md](https://github.com/ualbertalib/jupiter/blob/master/CHANGELOG.md).', sticky: false)
end


# Warn when there is a big PR
warn('This PR is too big! Consider breaking it down into smaller PRs.') if git.lines_of_code > 500

0 comments on commit ccdc292

Please sign in to comment.