lib/scss_lint/reporter/xml_reporter.rb in scss-lint-0.23.0 vs lib/scss_lint/reporter/xml_reporter.rb in scss-lint-0.23.1
- old
+ new
@@ -4,17 +4,17 @@
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.encode(:xml => :attr)}>"
+ output << "<file name=#{filename.encode(xml: :attr)}>"
file_lints.each do |lint|
output << "<issue line=\"#{lint.location.line}\" " <<
"column=\"#{lint.location.column}\" " <<
"length=\"#{lint.location.length}\" " <<
"severity=\"#{lint.severity}\" " <<
- "reason=#{lint.description.encode(:xml => :attr)} />"
+ "reason=#{lint.description.encode(xml: :attr)} />"
end
output << '</file>'
end
output << '</lint>'