blob: b43a1042bd51174e8d0144fd739d5187bc48a158 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# frozen_string_literal: true
# This is noisy for draft MRs, so let's ignore this cop in draft mode since we have
# rubocop watching this as well.
return if helper.draft_mr?
# Danger should not comment when inline disables are added in the following files.
no_suggestions_for_extensions = %w[.md]
helper.all_changed_files.each do |filename|
next if filename.end_with?(*no_suggestions_for_extensions)
rubocop.add_suggestions_for(filename)
end
|