Skip to content

Commit

Permalink
added danger rul
Browse files Browse the repository at this point in the history
  • Loading branch information
RishabhTayal committed Jan 5, 2018
1 parent 2d268ff commit 611acdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ if !git.modified_files.include?("CHANGELOG.md")
warn("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/RishabhTayal/ReviewMonitor/blob/master/CHANGELOG.md).")
end

# - > +
message("Good job on cleaning the code") if git.deletions > git.insertions

# Don't let testing shortcuts get into master by accident
fail("fdescribe left in tests") if `grep -r fdescribe specs/ `.length > 1
fail("fit left in tests") if `grep -r fit specs/ `.length > 1

0 comments on commit 611acdb

Please sign in to comment.