lib/brakeman/report/report_hash.rb
# 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
Source Files
- lib/brakeman.rb
- lib/brakeman/app_tree.rb
- lib/brakeman/call_index.rb
- lib/brakeman/checks.rb
- lib/brakeman/checks/base_check.rb
- lib/brakeman/checks/check_basic_auth.rb
- lib/brakeman/checks/check_basic_auth_timing_attack.rb
- lib/brakeman/checks/check_content_tag.rb
- lib/brakeman/checks/check_cookie_serialization.rb
- lib/brakeman/checks/check_create_with.rb
- lib/brakeman/checks/check_cross_site_scripting.rb
- lib/brakeman/checks/check_csrf_token_forgery_cve.rb
- lib/brakeman/checks/check_default_routes.rb
- lib/brakeman/checks/check_deserialize.rb
- lib/brakeman/checks/check_detailed_exceptions.rb
- lib/brakeman/checks/check_digest_dos.rb
- lib/brakeman/checks/check_divide_by_zero.rb
- lib/brakeman/checks/check_dynamic_finders.rb
- lib/brakeman/checks/check_eol_rails.rb
- lib/brakeman/checks/check_eol_ruby.rb
- lib/brakeman/checks/check_escape_function.rb
- lib/brakeman/checks/check_evaluation.rb
- lib/brakeman/checks/check_execute.rb
- lib/brakeman/checks/check_file_access.rb
- lib/brakeman/checks/check_file_disclosure.rb
- lib/brakeman/checks/check_filter_skipping.rb
- lib/brakeman/checks/check_force_ssl.rb
- lib/brakeman/checks/check_forgery_setting.rb
- lib/brakeman/checks/check_header_dos.rb
- lib/brakeman/checks/check_i18n_xss.rb
- lib/brakeman/checks/check_jruby_xml.rb
- lib/brakeman/checks/check_json_encoding.rb
- lib/brakeman/checks/check_json_entity_escape.rb
- lib/brakeman/checks/check_json_parsing.rb
- lib/brakeman/checks/check_link_to.rb
- lib/brakeman/checks/check_link_to_href.rb
- lib/brakeman/checks/check_mail_to.rb
- lib/brakeman/checks/check_mass_assignment.rb
- lib/brakeman/checks/check_mime_type_dos.rb
- lib/brakeman/checks/check_model_attr_accessible.rb
- lib/brakeman/checks/check_model_attributes.rb
- lib/brakeman/checks/check_model_serialize.rb
- lib/brakeman/checks/check_nested_attributes.rb
- lib/brakeman/checks/check_nested_attributes_bypass.rb
- lib/brakeman/checks/check_number_to_currency.rb
- lib/brakeman/checks/check_page_caching_cve.rb
- lib/brakeman/checks/check_pathname.rb
- lib/brakeman/checks/check_permit_attributes.rb
- lib/brakeman/checks/check_quote_table_name.rb
- lib/brakeman/checks/check_ransack.rb
- lib/brakeman/checks/check_redirect.rb
- lib/brakeman/checks/check_regex_dos.rb
- lib/brakeman/checks/check_render.rb
- lib/brakeman/checks/check_render_dos.rb
- lib/brakeman/checks/check_render_inline.rb
- lib/brakeman/checks/check_response_splitting.rb
- lib/brakeman/checks/check_reverse_tabnabbing.rb
- lib/brakeman/checks/check_route_dos.rb
- lib/brakeman/checks/check_safe_buffer_manipulation.rb
- lib/brakeman/checks/check_sanitize_config_cve.rb
- lib/brakeman/checks/check_sanitize_methods.rb
- lib/brakeman/checks/check_secrets.rb
- lib/brakeman/checks/check_select_tag.rb
- lib/brakeman/checks/check_select_vulnerability.rb
- lib/brakeman/checks/check_send.rb
- lib/brakeman/checks/check_send_file.rb
- lib/brakeman/checks/check_session_manipulation.rb
- lib/brakeman/checks/check_session_settings.rb
- lib/brakeman/checks/check_simple_format.rb
- lib/brakeman/checks/check_single_quotes.rb
- lib/brakeman/checks/check_skip_before_filter.rb
- lib/brakeman/checks/check_sprockets_path_traversal.rb
- lib/brakeman/checks/check_sql.rb
- lib/brakeman/checks/check_sql_cves.rb
- lib/brakeman/checks/check_ssl_verify.rb
- lib/brakeman/checks/check_strip_tags.rb
- lib/brakeman/checks/check_symbol_dos.rb
- lib/brakeman/checks/check_symbol_dos_cve.rb
- lib/brakeman/checks/check_template_injection.rb
- lib/brakeman/checks/check_translate_bug.rb
- lib/brakeman/checks/check_unsafe_reflection.rb
- lib/brakeman/checks/check_unsafe_reflection_methods.rb
- lib/brakeman/checks/check_unscoped_find.rb
- lib/brakeman/checks/check_validation_regex.rb
- lib/brakeman/checks/check_verb_confusion.rb
- lib/brakeman/checks/check_weak_hash.rb
- lib/brakeman/checks/check_weak_rsa_key.rb
- lib/brakeman/checks/check_without_protection.rb
- lib/brakeman/checks/check_xml_dos.rb
- lib/brakeman/checks/check_yaml_parsing.rb
- lib/brakeman/checks/eol_check.rb
- lib/brakeman/codeclimate/engine_configuration.rb
- lib/brakeman/commandline.rb
- lib/brakeman/differ.rb
- lib/brakeman/file_parser.rb
- lib/brakeman/file_path.rb
- lib/brakeman/messages.rb
- lib/brakeman/options.rb
- lib/brakeman/parsers/erubis_patch.rb
- lib/brakeman/parsers/haml_embedded.rb
- lib/brakeman/parsers/rails2_erubis.rb
- lib/brakeman/parsers/rails2_xss_plugin_erubis.rb
- lib/brakeman/parsers/rails3_erubis.rb
- lib/brakeman/parsers/slim_embedded.rb
- lib/brakeman/parsers/template_parser.rb
- lib/brakeman/processor.rb
- lib/brakeman/processors/alias_processor.rb
- lib/brakeman/processors/base_processor.rb
- lib/brakeman/processors/config_processor.rb
- lib/brakeman/processors/controller_alias_processor.rb
- lib/brakeman/processors/controller_processor.rb
- lib/brakeman/processors/erb_template_processor.rb
- lib/brakeman/processors/erubis_template_processor.rb
- lib/brakeman/processors/gem_processor.rb
- lib/brakeman/processors/haml_template_processor.rb
- lib/brakeman/processors/lib/basic_processor.rb
- lib/brakeman/processors/lib/call_conversion_helper.rb
- lib/brakeman/processors/lib/file_type_detector.rb
- lib/brakeman/processors/lib/find_all_calls.rb
- lib/brakeman/processors/lib/find_call.rb
- lib/brakeman/processors/lib/find_return_value.rb
- lib/brakeman/processors/lib/module_helper.rb
- lib/brakeman/processors/lib/processor_helper.rb
- lib/brakeman/processors/lib/rails2_config_processor.rb
- lib/brakeman/processors/lib/rails2_route_processor.rb
- lib/brakeman/processors/lib/rails3_config_processor.rb
- lib/brakeman/processors/lib/rails3_route_processor.rb
- lib/brakeman/processors/lib/rails4_config_processor.rb
- lib/brakeman/processors/lib/render_helper.rb
- lib/brakeman/processors/lib/render_path.rb
- lib/brakeman/processors/lib/route_helper.rb
- lib/brakeman/processors/lib/safe_call_helper.rb
- lib/brakeman/processors/library_processor.rb
- lib/brakeman/processors/model_processor.rb
- lib/brakeman/processors/output_processor.rb
- lib/brakeman/processors/route_processor.rb
- lib/brakeman/processors/slim_template_processor.rb
- lib/brakeman/processors/template_alias_processor.rb
- lib/brakeman/processors/template_processor.rb
- lib/brakeman/report.rb
- lib/brakeman/report/ignore/config.rb
- lib/brakeman/report/ignore/interactive.rb
- lib/brakeman/report/pager.rb
- lib/brakeman/report/renderer.rb
- lib/brakeman/report/report_base.rb
- lib/brakeman/report/report_codeclimate.rb
- lib/brakeman/report/report_csv.rb
- lib/brakeman/report/report_github.rb
- lib/brakeman/report/report_hash.rb
- lib/brakeman/report/report_html.rb
- lib/brakeman/report/report_json.rb
- lib/brakeman/report/report_junit.rb
- lib/brakeman/report/report_markdown.rb
- lib/brakeman/report/report_sarif.rb
- lib/brakeman/report/report_sonar.rb
- lib/brakeman/report/report_table.rb
- lib/brakeman/report/report_tabs.rb
- lib/brakeman/report/report_text.rb
- lib/brakeman/rescanner.rb
- lib/brakeman/scanner.rb
- lib/brakeman/tracker.rb
- lib/brakeman/tracker/collection.rb
- lib/brakeman/tracker/config.rb
- lib/brakeman/tracker/constants.rb
- lib/brakeman/tracker/controller.rb
- lib/brakeman/tracker/file_cache.rb
- lib/brakeman/tracker/library.rb
- lib/brakeman/tracker/method_info.rb
- lib/brakeman/tracker/model.rb
- lib/brakeman/tracker/template.rb
- lib/brakeman/util.rb
- lib/brakeman/version.rb
- lib/brakeman/warning.rb
- lib/brakeman/warning_codes.rb
- lib/ruby_parser/bm_sexp.rb
- lib/ruby_parser/bm_sexp_processor.rb