diff options
Diffstat (limited to 'tooling/danger/rubocop_inline_disable_suggestion.rb')
-rw-r--r-- | tooling/danger/rubocop_inline_disable_suggestion.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tooling/danger/rubocop_inline_disable_suggestion.rb b/tooling/danger/rubocop_inline_disable_suggestion.rb index 4d1bff9856b..ad481ef1334 100644 --- a/tooling/danger/rubocop_inline_disable_suggestion.rb +++ b/tooling/danger/rubocop_inline_disable_suggestion.rb @@ -5,7 +5,7 @@ require_relative 'suggestion' module Tooling module Danger class RubocopInlineDisableSuggestion < Suggestion - MATCH = /^\+.*#\s*rubocop\s*:\s*(?:disable|todo)\s+/ + MATCH = /^\+.*#\s*rubocop\s*:\s*(?:disable|todo)\s+(?!.*\s--\s\S)/ REPLACEMENT = nil SUGGESTION = <<~MESSAGE_MARKDOWN |