Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 133 additions & 1 deletion unittests/scans/rubocop/many_vulns.json
Original file line number Diff line number Diff line change
@@ -1 +1,133 @@
{"metadata":{"rubocop_version":"1.24.1","ruby_engine":"ruby","ruby_version":"3.0.3","ruby_patchlevel":"157","ruby_platform":"x86_64-linux"},"files":[{"path":"fake_app_unsecure/app/main.rb","offenses":[{"severity":"convention","message":"`File.read` is safer than `IO.read`.","cop_name":"Security/IoMethods","corrected":false,"correctable":true,"location":{"start_line":12,"start_column":1,"last_line":12,"last_column":13,"length":13,"line":12,"column":1}},{"severity":"convention","message":"`File.read` is safer than `IO.read`.","cop_name":"Security/IoMethods","corrected":false,"correctable":true,"location":{"start_line":13,"start_column":1,"last_line":13,"last_column":15,"length":15,"line":13,"column":1}},{"severity":"convention","message":"Prefer `JSON.parse` over `JSON.load`.","cop_name":"Security/JSONLoad","corrected":false,"correctable":true,"location":{"start_line":19,"start_column":6,"last_line":19,"last_column":9,"length":4,"line":19,"column":6}},{"severity":"convention","message":"Prefer using `YAML.safe_load` over `YAML.load`.","cop_name":"Security/YAMLLoad","corrected":false,"correctable":true,"location":{"start_line":22,"start_column":6,"last_line":22,"last_column":9,"length":4,"line":22,"column":6}},{"severity":"convention","message":"The use of `Kernel#open` is a serious security risk.","cop_name":"Security/Open","corrected":false,"correctable":false,"location":{"start_line":25,"start_column":1,"last_line":25,"last_column":4,"length":4,"line":25,"column":1}},{"severity":"convention","message":"The use of `Kernel#open` is a serious security risk.","cop_name":"Security/Open","corrected":false,"correctable":false,"location":{"start_line":26,"start_column":1,"last_line":26,"last_column":4,"length":4,"line":26,"column":1}},{"severity":"convention","message":"The use of `URI.open` is a serious security risk.","cop_name":"Security/Open","corrected":false,"correctable":false,"location":{"start_line":27,"start_column":5,"last_line":27,"last_column":8,"length":4,"line":27,"column":5}}]}],"summary":{"offense_count":7,"target_file_count":1,"inspected_file_count":1}}
{
"metadata": {
"rubocop_version": "1.24.1",
"ruby_engine": "ruby",
"ruby_version": "3.0.3",
"ruby_patchlevel": "157",
"ruby_platform": "x86_64-linux"
},
"files": [
{
"path": "fake_app_unsecure/app/main.rb",
"offenses": [
{
"severity": "convention",
"message": "`File.read` is safer than `IO.read`.",
"cop_name": "Security/IoMethods",
"corrected": false,
"correctable": true,
"location": {
"start_line": 12,
"start_column": 1,
"last_line": 12,
"last_column": 13,
"length": 13,
"line": 12,
"column": 1
}
},
{
"severity": "convention",
"message": "`File.read` is safer than `IO.read`.",
"cop_name": "Security/IoMethods",
"corrected": false,
"correctable": true,
"location": {
"start_line": 13,
"start_column": 1,
"last_line": 13,
"last_column": 15,
"length": 15,
"line": 13,
"column": 1
}
},
{
"severity": "convention",
"message": "Prefer `JSON.parse` over `JSON.load`.",
"cop_name": "Security/JSONLoad",
"corrected": false,
"correctable": true,
"location": {
"start_line": 19,
"start_column": 6,
"last_line": 19,
"last_column": 9,
"length": 4,
"line": 19,
"column": 6
}
},
{
"severity": "convention",
"message": "Prefer using `YAML.safe_load` over `YAML.load`.",
"cop_name": "Security/YAMLLoad",
"corrected": false,
"correctable": true,
"location": {
"start_line": 22,
"start_column": 6,
"last_line": 22,
"last_column": 9,
"length": 4,
"line": 22,
"column": 6
}
},
{
"severity": "convention",
"message": "The use of `Kernel#open` is a serious security risk.",
"cop_name": "Security/Open",
"corrected": false,
"correctable": false,
"location": {
"start_line": 25,
"start_column": 1,
"last_line": 25,
"last_column": 4,
"length": 4,
"line": 25,
"column": 1
}
},
{
"severity": "convention",
"message": "The use of `Kernel#open` is a serious security risk.",
"cop_name": "Security/Open",
"corrected": false,
"correctable": false,
"location": {
"start_line": 26,
"start_column": 1,
"last_line": 26,
"last_column": 4,
"length": 4,
"line": 26,
"column": 1
}
},
{
"severity": "convention",
"message": "The use of `URI.open` is a serious security risk.",
"cop_name": "Security/Open",
"corrected": false,
"correctable": false,
"location": {
"start_line": 27,
"start_column": 5,
"last_line": 27,
"last_column": 8,
"length": 4,
"line": 27,
"column": 5
}
}
]
}
],
"summary": {
"offense_count": 7,
"target_file_count": 1,
"inspected_file_count": 1
}
}
Loading