Class: Hone::Formatters::GitHub

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

Constant Summary collapse

PRIORITY_TO_LEVEL =
{
  hot_cpu: "error",
  hot_alloc: "error",
  jit_unfriendly: "warning",
  warm: "notice",
  cold: "notice",
  unknown: "notice"
}.freeze

Constants included from Filterable

Filterable::PRIORITY_LABELS

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Filterable

#filter_cold

Constructor Details

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

Instance Method Details

#formatObject



15
16
17
# File 'lib/hone/formatters/github.rb', line 15

def format
  filtered_findings.map { |finding| format_annotation(finding) }.join("\n")
end