class CC::Formatters::TicketFormatter
Public Instance Methods
format_vulnerability_body()
click to toggle source
# File lib/cc/formatters/ticket_formatter.rb, line 12 def format_vulnerability_body if multiple? "#{vulnerabilities.size} new #{warning_type} issues were found by Code Climate" else message = "A #{warning_type} vulnerability was found by Code Climate" message << location_info end message << ".\n\n" message << details_url end
format_vulnerability_title()
click to toggle source
# File lib/cc/formatters/ticket_formatter.rb, line 4 def format_vulnerability_title if multiple? "#{vulnerabilities.size} new #{warning_type} issues found" else "New #{warning_type} issue found" << location_info end end