# File lib/brakeman/report/report_text.rb, line 147
  def output_warning w
    out = [
      label('Confidence', confidence(w.confidence)),
      label('Category', w.warning_type.to_s),
      label('Check', w.check.gsub(/^Brakeman::Check/, '')),
      label('Message', w.message)
    ]

    if w.code
      out << label('Code', format_code(w))
    end

    out << label('File', warning_file(w))

    if w.line
      out << label('Line', w.line)
    end

    out
  end