Sha256: 73ecbc124c099b074ef4431efcc96a3f3eccd2c73f7bec1557e4687749787410
Contents?: true
Size: 706 Bytes
Versions: 139
Compression:
Stored size: 706 Bytes
Contents
# Generates a hash table for use in Brakeman tests class Brakeman::Report::Hash < Brakeman::Report::Base def generate_report report = { :errors => tracker.errors, :controllers => tracker.controllers, :models => tracker.models, :templates => tracker.templates } [:generic_warnings, :controller_warnings, :model_warnings, :template_warnings].each do |meth| report[meth] = self.send(meth) report[meth].each do |w| w.message = w.format_message w.context = context_for(w).join("\n") end end report[:config] = tracker.config report[:checks_run] = tracker.checks.checks_run report end end
Version data entries
139 entries across 125 versions & 4 rubygems