Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Commit a70a724

Browse files
committed
Fix brakeman warning
1 parent fe5603c commit a70a724

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

config/brakeman.ignore

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
11
{
22
"ignored_warnings": [
3-
{
4-
"warning_type": "Dangerous Eval",
5-
"warning_code": 13,
6-
"fingerprint": "2e922b984de4f804bbedc714b9f33ded46f26b5e8ee7510fcc66a2be5151855c",
7-
"check_name": "Evaluation",
8-
"message": "Dynamic string evaluated as code",
9-
"file": "app/helpers/styled_form_builder.rb",
10-
"line": 5,
11-
"link": "https://brakemanscanner.org/docs/warning_types/dangerous_eval/",
12-
"code": "class_eval(\" def #{selector}(method, options = {})\\n form_options = options.slice(:label, :label_tooltip, :inline, :container_class, :required)\\n html_options = options.except(:label, :label_tooltip, :inline, :container_class)\\n \\n build_field(method, form_options, html_options) do |merged_options|\\n super(method, merged_options)\\n end\\n end\\n\", \"app/helpers/styled_form_builder.rb\", (5 + 1))",
13-
"render_path": null,
14-
"location": {
15-
"type": "method",
16-
"class": "StyledFormBuilder",
17-
"method": null
18-
},
19-
"user_input": null,
20-
"confidence": "Weak",
21-
"cwe_id": [
22-
913,
23-
95
24-
],
25-
"note": ""
26-
},
273
{
284
"warning_type": "Mass Assignment",
295
"warning_code": 105,
@@ -70,6 +46,30 @@
7046
],
7147
"note": ""
7248
},
49+
{
50+
"warning_type": "Dangerous Eval",
51+
"warning_code": 13,
52+
"fingerprint": "c154514a0f86341473e4abf35e77721495b326c7855e4967d284b4942371819c",
53+
"check_name": "Evaluation",
54+
"message": "Dynamic string evaluated as code",
55+
"file": "app/helpers/styled_form_builder.rb",
56+
"line": 5,
57+
"link": "https://brakemanscanner.org/docs/warning_types/dangerous_eval/",
58+
"code": "class_eval(\" def #{selector}(method, options = {})\\n form_options = options.slice(:label, :label_tooltip, :inline, :container_class, :required)\\n html_options = options.except(:label, :label_tooltip, :inline, :container_class)\\n\\n build_field(method, form_options, html_options) do |merged_options|\\n super(method, merged_options)\\n end\\n end\\n\", \"app/helpers/styled_form_builder.rb\", (5 + 1))",
59+
"render_path": null,
60+
"location": {
61+
"type": "method",
62+
"class": "StyledFormBuilder",
63+
"method": null
64+
},
65+
"user_input": null,
66+
"confidence": "Weak",
67+
"cwe_id": [
68+
913,
69+
95
70+
],
71+
"note": "Uses similar pattern to Rails internal form builder"
72+
},
7373
{
7474
"warning_type": "Dynamic Render Path",
7575
"warning_code": 15,

0 commit comments

Comments
 (0)