class Brakeman::Report::Tabs
Generated tab-separated output suitable for the Jenkins Brakeman
Plugin: github.com/presidentbeef/brakeman-jenkins-plugin
Public Instance Methods
generate_report()
click to toggle source
# File lib/brakeman/report/report_tabs.rb, line 6 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.file.absolute)}\t#{line}\t#{w.warning_type}\t#{category}\t#{w.format_message}\t#{w.confidence_name}" end.join "\n" end.join "\n" end