lib/rubocop/cop/message_annotator.rb
# Returns the annotated message,
# based on params passed into initializer
#
# @return [String] annotated message
Returns the annotated message,
based on params passed into initializer
Returns the annotated message based on params passed into initializer
def annotate(message)
        message = "#{cop_name}: #{message}" if display_cop_names?
        message += " #{details}" if extra_details? && details
        if display_style_guide?
          links = urls.join(', ')
          message = "#{message} (#{links})"
        end
        message
      end
def annotate ( message ) message = "#{cop_name}: #{message}" if display_cop_names? message += " #{details}" if extra_details? && details if display_style_guide? links = urls . join ( ', ' ) message = "#{message} (#{links})" end message end
Returns the annotated message,
based on params passed into initializer
Returns the annotated message based on params passed into initializer
None
String
message
<not_specific>