1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-10 07:55:21 +02:00

Lint fixes, brakeman update

This commit is contained in:
Zach Gollwitzer 2025-07-24 10:43:19 -04:00
parent 3490043a54
commit 07e37065d9
12 changed files with 309 additions and 286 deletions

View file

@ -1,5 +1,5 @@
require 'zip' require "zip"
require 'csv' require "csv"
class Family::DataExporter class Family::DataExporter
def initialize(family) def initialize(family)

View file

@ -1,5 +1,28 @@
{ {
"ignored_warnings": [ "ignored_warnings": [
{
"warning_type": "Redirect",
"warning_code": 18,
"fingerprint": "723b1970ca6bf16ea0c2c1afa0c00d3c54854a16568d6cb933e497947565d9ab",
"check_name": "Redirect",
"message": "Possible unprotected redirect",
"file": "app/controllers/family_exports_controller.rb",
"line": 30,
"link": "https://brakemanscanner.org/docs/warning_types/redirect/",
"code": "redirect_to(Current.family.family_exports.find(params[:id]).export_file, :allow_other_host => true)",
"render_path": null,
"location": {
"type": "method",
"class": "FamilyExportsController",
"method": "download"
},
"user_input": "Current.family.family_exports.find(params[:id]).export_file",
"confidence": "Weak",
"cwe_id": [
601
],
"note": ""
},
{ {
"warning_type": "Mass Assignment", "warning_type": "Mass Assignment",
"warning_code": 105, "warning_code": 105,
@ -105,5 +128,5 @@
"note": "" "note": ""
} }
], ],
"brakeman_version": "7.0.2" "brakeman_version": "7.1.0"
} }