Sha256: c408e14e63936b7c85e49902f345a79747cad6523071b032349ad79cd51eb27f
Contents?: true
Size: 679 Bytes
Versions: 18
Compression:
Stored size: 679 Bytes
Contents
module CC module Formatters class TicketFormatter < CC::Service::Formatter def format_vulnerability_title if multiple? "#{vulnerabilities.size} new #{warning_type} issues found" else "New #{warning_type} issue found" << location_info end end 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 end end end
Version data entries
18 entries across 18 versions & 1 rubygems