From ff53249220692235fb1c3fff5209ca39eb93ef8b Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 25 May 2022 18:17:34 -0400 Subject: [PATCH] update brakeman ignore --- config/brakeman.ignore | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/config/brakeman.ignore b/config/brakeman.ignore index 4f1ce6334..4b881ea24 100755 --- a/config/brakeman.ignore +++ b/config/brakeman.ignore @@ -20,6 +20,26 @@ "confidence": "Medium", "note": "" }, + { + "warning_type": "Unscoped Find", + "warning_code": 82, + "fingerprint": "4746b9529e35b8ffa5684e95d9f1b3e2f282703a6456abf7ad06c98d6a6e714b", + "check_name": "UnscopedFind", + "message": "Unscoped call to `Survey#find`", + "file": "app/controllers/surveys_controller.rb", + "line": 12, + "link": "https://brakemanscanner.org/docs/warning_types/unscoped_find/", + "code": "Survey.find(params[:survey_id])", + "render_path": null, + "location": { + "type": "method", + "class": "SurveysController", + "method": "assign_people" + }, + "user_input": "params[:survey_id]", + "confidence": "Weak", + "note": "" + }, { "warning_type": "Mass Assignment", "warning_code": 70, @@ -39,8 +59,28 @@ "user_input": null, "confidence": "Medium", "note": "" + }, + { + "warning_type": "Unscoped Find", + "warning_code": 82, + "fingerprint": "dc8005b6ba8b0b63b65ddb44fe7de9a594358e8fcb047803dd4b512405570d1c", + "check_name": "UnscopedFind", + "message": "Unscoped call to `Survey#find`", + "file": "app/controllers/surveys_controller.rb", + "line": 26, + "link": "https://brakemanscanner.org/docs/warning_types/unscoped_find/", + "code": "Survey.find(params[:survey_id])", + "render_path": null, + "location": { + "type": "method", + "class": "SurveysController", + "method": "unassign_people" + }, + "user_input": "params[:survey_id]", + "confidence": "Weak", + "note": "" } ], - "updated": "2022-05-25 17:40:02 -0400", + "updated": "2022-05-25 18:17:19 -0400", "brakeman_version": "5.2.3" }