Sha256: 749f26ea1ac09554a77d930025e63f73076889478bb0ade343242a824fcc60a2
Contents?: true
Size: 790 Bytes
Versions: 4
Compression:
Stored size: 790 Bytes
Contents
# encoding: utf-8 module Rubocop module Formatter # This formatter formats report data in clang style. # The precise location of the problem is shown together with the # relevant source code. class ClangStyleFormatter < SimpleTextFormatter def report_file(file, offences) offences.each do |o| output.printf("%s:%d:%d: %s: %s\n", smart_path(file).color(:cyan), o.line, o.real_column, o.clang_severity, o.message) source_line = o.location.source_line unless source_line.blank? output.puts(source_line) output.puts(' ' * o.location.column + '^' * o.location.column_range.count) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems