]> git.openstreetmap.org Git - rails.git/blob - config/brakeman.ignore
Merge pull request #4988 from nenad-vujicic/issue_4912_pr_labeling
[rails.git] / config / brakeman.ignore
1 {
2   "ignored_warnings": [
3     {
4       "warning_type": "HTTP Verb Confusion",
5       "warning_code": 118,
6       "fingerprint": "9567bbac855c6ec5552572700ec809d7c1d77f59953e6725aeca54fee5091674",
7       "check_name": "VerbConfusion",
8       "message": "Potential HTTP verb confusion. `HEAD` is routed like `GET` but `request.get?` will return `false`",
9       "file": "app/controllers/application_controller.rb",
10       "line": 312,
11       "link": "https://brakemanscanner.org/docs/warning_types/http_verb_confusion/",
12       "code": "if request.get? then\n  respond_to do\n   format.html do\n   redirect_to(:controller => \"/errors\", :action => \"bad_request\")\n   end\n  format.any do\n   head(:bad_request)\n   end\n   end\nelse\n  head(:bad_request)\nend",
13       "render_path": null,
14       "location": {
15         "type": "method",
16         "class": "ApplicationController",
17         "method": "invalid_parameter"
18       },
19       "user_input": "request.get?",
20       "confidence": "Weak",
21       "cwe_id": [
22         352
23       ],
24       "note": ""
25     }
26   ],
27   "updated": "2024-04-11 10:07:03 +0100",
28   "brakeman_version": "6.1.2"
29 }