class RuboCop::Cop::Lint::AmbiguousRegexpLiteral

do_something(/pattern/i)
# With parentheses, there’s no ambiguity.
do_something /pattern/i
# (i.e. ‘do_something./(pattern)./(i)`)
# but it could possibly be `/` method invocations.
# This is interpreted as a method invocation with a regexp literal,
@example
a method invocation without parentheses.
This cop checks for ambiguous regexp literals in the first argument of

def alternative_message(_diagnostic)

def alternative_message(_diagnostic)
  MSG
end

def relevant_diagnostic?(diagnostic)

def relevant_diagnostic?(diagnostic)
  diagnostic.reason == :ambiguous_literal
end