Sha256: 51654f6b3c71bcd849a3ca3f6d5acc42d29b295207eb128739f708a54623206e
Contents?: true
Size: 625 Bytes
Versions: 16
Compression:
Stored size: 625 Bytes
Contents
module SCSSLint # Reports lints in an XML format. class Reporter::XMLReporter < Reporter def report_lints output = '<?xml version="1.0" encoding="utf-8"?>' output << '<lint>' lints.group_by(&:filename).each do |filename, file_lints| output << "<file name='#{filename}'>" file_lints.each do |lint| output << "<issue line='#{lint.line}' " << "severity='#{lint.severity}' " << "reason='#{lint.description}' />" end output << '</file>' end output << '</lint>' output end end end
Version data entries
16 entries across 16 versions & 1 rubygems