Sha256: 7f630233910654f6c7087dd0462496f5dae21caa97feaa77cbb8e322bc602793

Contents?: true

Size: 461 Bytes

Versions: 48

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

thresholds = helper.config.code_size_thresholds
lines_changed = git.lines_of_code

if lines_changed > thresholds[:high]
  warn "This merge request is definitely too big (#{lines_changed} lines changed), please split it into multiple merge requests."
elsif lines_changed > thresholds[:medium]
  warn "This merge request is quite big (#{lines_changed} lines changed), please consider splitting it into multiple merge requests."
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
gitlab-dangerfiles-3.8.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.7.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.6.7 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.6.6 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.6.5 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.6.4 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.6.3 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.6.2 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.6.1 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.6.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.5.2 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.5.1 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.5.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.4.3 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.4.2 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.4.1 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.4.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.3.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.2.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.1.0 lib/danger/rules/changes_size/Dangerfile