Sha256: 88477ccb7c0776d2612b9afea754fce67e99da680516d0328828b939bfef704f
Contents?: true
Size: 687 Bytes
Versions: 60
Compression:
Stored size: 687 Bytes
Contents
require 'brakeman/report/report_table' #Generated tab-separated output suitable for the Jenkins Brakeman Plugin: #https://github.com/presidentbeef/brakeman-jenkins-plugin class Brakeman::Report::Tabs < Brakeman::Report::Table 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]/, ' ') "#{(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 end
Version data entries
60 entries across 60 versions & 3 rubygems