summaryrefslogtreecommitdiff
path: root/danger/changes_size/Dangerfile
blob: 4471e1926c935acc31dcb9e437ea29217d49c6ee (plain)
1
2
3
4
5
6
7
8
9
# rubocop:disable Style/SignalException

if git.lines_of_code > 500
  warn "This merge request is quite big, please consider splitting it into multiple merge requests."
end

if git.lines_of_code > 5_000
  fail "This merge request is definitely too big, please split it into multiple merge requests."
end