Sha256: 19b044f6493d381d42e1b3d41ff36661a39d7bf002ee608c74bc84d82cfafd22
Contents?: true
Size: 675 Bytes
Versions: 2
Compression:
Stored size: 675 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
railroader-4.3.5 | lib/railroader/report/report_tabs.rb |
railroader-4.3.4 | lib/railroader/report/report_tabs.rb |