Skip to content

Commit

Permalink
Resolved warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jclusso committed Jan 2, 2025
1 parent 858d84c commit 7a8c342
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions config/brakeman.ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"ignored_warnings": [
{
"warning_type": "Dangerous Eval",
"warning_code": 13,
"fingerprint": "12e4ff689f9c02241c7e337c5ffa99a65c941954b45ec880df8ea398d3307f4f",
"check_name": "Evaluation",
"message": "Dynamic string evaluated as code",
"file": "app/helpers/application_form_builder.rb",
"line": 7,
"link": "https://brakemanscanner.org/docs/warning_types/dangerous_eval/",
"code": "class_eval(\" def #{selector}(method, options)\\n default_options = { class: \\\"form-field__input\\\" }\\n merged_options = default_options.merge(options)\\n\\n return super(method, merged_options) unless options[:label]\\n\\n @template.form_field_tag do\\n label(method, *label_args(options)) +\\n super(method, merged_options.except(:label))\\n end\\n end\\n\", \"app/helpers/application_form_builder.rb\", (7 + 1))",
"render_path": null,
"location": {
"type": "method",
"class": "ApplicationFormBuilder",
"method": null
},
"user_input": null,
"confidence": "Weak",
"cwe_id": [
913,
95
],
"note": ""
}
],
"brakeman_version": "7.0.0"
}

0 comments on commit 7a8c342

Please sign in to comment.