diff options
Diffstat (limited to 'danger/rubocop/Dangerfile')
-rw-r--r-- | danger/rubocop/Dangerfile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/danger/rubocop/Dangerfile b/danger/rubocop/Dangerfile index a53847199db..41131241691 100644 --- a/danger/rubocop/Dangerfile +++ b/danger/rubocop/Dangerfile @@ -1,5 +1,10 @@ # frozen_string_literal: true +# 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 |