Sha256: d50837a9a6428bb8ff5d1f236b7060d632c63f66b1c5aa1997a9d9fbfe1da42f

Contents?: true

Size: 497 Bytes

Versions: 15

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

return if helper.stable_branch_mr?

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

15 entries across 15 versions & 1 rubygems

Version Path
gitlab-dangerfiles-4.8.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-4.7.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-4.6.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-4.5.1 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-4.4.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-4.3.2 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-4.2.1 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-4.2.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-4.1.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-4.0.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.13.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.12.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.11.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.10.0 lib/danger/rules/changes_size/Dangerfile
gitlab-dangerfiles-3.9.0 lib/danger/rules/changes_size/Dangerfile