diff --git a/danger/rubocop/Dangerfile b/danger/rubocop/Dangerfile index a53847199dbf5891d2bdb3796cc47d1197e685e1..4113124169175a14f0b9b010040dd9cab474132e 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