Sha256: c6e80102f4d71352b5bc4c02d16842c2ba6c7a46de078539aff5f2e01df8e6aa

Contents?: true

Size: 676 Bytes

Versions: 1

Compression:

Stored size: 676 Bytes

Contents

# Generated tab-separated output suitable for the Jenkins Railroader Plugin:
# https://github.com/presidentbeef/railroader-jenkins-plugin
class Railroader::Report::Tabs < Railroader::Report::Base
  def generate_report
    [[:generic_warnings, "General"], [:controller_warnings, "Controller"],
     [:model_warnings, "Model"], [:template_warnings, "Template"]].map do |meth, category|

      self.send(meth).map do |w|
        line = w.line || 0
        w.warning_type.gsub!(/[^\w\s]/, ' ')
        "#{warning_file(w, :absolute)}\t#{line}\t#{w.warning_type}\t#{category}\t#{w.format_message}\t#{TEXT_CONFIDENCE[w.confidence]}"
      end.join "\n"

    end.join "\n"

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
railroader-4.3.8 lib/railroader/report/report_tabs.rb