|
1 | 1 | { |
2 | 2 | "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 | | - }, |
27 | 3 | { |
28 | 4 | "warning_type": "Mass Assignment", |
29 | 5 | "warning_code": 105, |
|
70 | 46 | ], |
71 | 47 | "note": "" |
72 | 48 | }, |
| 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 | + }, |
73 | 73 | { |
74 | 74 | "warning_type": "Dynamic Render Path", |
75 | 75 | "warning_code": 15, |
|
0 commit comments