Sha256: ce1b88c830035d68c37c7b69c4739c42b6dc383d879193e02240b70ad3c3a6d7
Contents?: true
Size: 665 Bytes
Versions: 26
Compression:
Stored size: 665 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(@app_tree, w).join("\n") end end report[:config] = tracker.config report end end
Version data entries
26 entries across 26 versions & 2 rubygems