Sha256: eaff74cc109b8c1c7e7c910dc3d74ed0b3af014848d8ecbae961d014918af08f
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 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) output.puts(o.location.source_line) output.puts(' ' * o.location.column + '^' * o.location.column_range.count) end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems