Commit 00649134 authored by Lin Jen-Shin's avatar Lin Jen-Shin Committed by Rémy Coutable

Remove allowing extra 2 lines since prepend_if_ee

Since we can just use `prepend_if_ee` now we shouldn't allow any
difference. We should just add them to CE.
parent 5091611b
......@@ -15,15 +15,7 @@ offenses = updated_numstat.select do |file, updated_delta|
more_lines = updated_delta > current_delta
allow_prepend_line =
# Don't complain if we're just adding 1 or 2 more lines, which could be
# `prepend EE::Module` and a blank line that we want.
!(current_delta == 0 && updated_delta <= 2) ||
# We only allow Ruby files to have prepend line
!file.end_with?('.rb')
more_lines &&
allow_prepend_line &&
!WHITELIST.any? { |pattern| Dir.glob(pattern, File::FNM_DOTMATCH).include?(file) }
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment