Skip to content

Add a warning to the DAST project when MRs get too big

Craig Smith requested to merge add_danger_line_count_warning into master

What does this MR do?

So that DAST developers are conscious of large MRs, add a warning when DAST MRs get too big.

This MR adds two warnings.

At > 500 lines of code the warning is: This merge request is quite big (more than #{git.lines_of_code} lines changed), please consider splitting it into multiple merge requests.

At > 2000 lines of code the warning is: This merge request is definitely too big (more than #{git.lines_of_code} lines changed), please split it into multiple merge requests.

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Craig Smith

Merge request reports