Class: Hone::Formatters::TSV

Inherits:
Base
  • Object
show all
Defined in:
lib/hone/formatters/tsv.rb

Constant Summary collapse

HEADERS =
%w[priority cpu_percent alloc_percent file line pattern_id message method_name].freeze
COLUMN_SEPARATOR =
"\t"

Constants included from Filterable

Filterable::PRIORITY_LABELS

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Filterable

#filter_cold, #priority_label

Constructor Details

This class inherits a constructor from Hone::Formatters::Base

Instance Method Details

#formatObject



9
10
11
12
13
# File 'lib/hone/formatters/tsv.rb', line 9

def format
  lines = [header_row]
  lines.concat(filtered_findings.map { |finding| format_row(finding) })
  lines.join("\n")
end