Sha256: ae81f95626e11f6e6911270e64df302a4686d7bd5623c5953b0177500fc63d7a
Contents?: true
Size: 717 Bytes
Versions: 110
Compression:
Stored size: 717 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[:checks_run] = tracker.checks.checks_run report end end
Version data entries
110 entries across 110 versions & 3 rubygems