Skip to content

Commit 6aa64b9

Browse files
💄 Beautify Rubocop json (#13894)
1 parent 1d4d0db commit 6aa64b9

1 file changed

Lines changed: 133 additions & 1 deletion

File tree

Lines changed: 133 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,133 @@
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}}
1+
{
2+
"metadata": {
3+
"rubocop_version": "1.24.1",
4+
"ruby_engine": "ruby",
5+
"ruby_version": "3.0.3",
6+
"ruby_patchlevel": "157",
7+
"ruby_platform": "x86_64-linux"
8+
},
9+
"files": [
10+
{
11+
"path": "fake_app_unsecure/app/main.rb",
12+
"offenses": [
13+
{
14+
"severity": "convention",
15+
"message": "`File.read` is safer than `IO.read`.",
16+
"cop_name": "Security/IoMethods",
17+
"corrected": false,
18+
"correctable": true,
19+
"location": {
20+
"start_line": 12,
21+
"start_column": 1,
22+
"last_line": 12,
23+
"last_column": 13,
24+
"length": 13,
25+
"line": 12,
26+
"column": 1
27+
}
28+
},
29+
{
30+
"severity": "convention",
31+
"message": "`File.read` is safer than `IO.read`.",
32+
"cop_name": "Security/IoMethods",
33+
"corrected": false,
34+
"correctable": true,
35+
"location": {
36+
"start_line": 13,
37+
"start_column": 1,
38+
"last_line": 13,
39+
"last_column": 15,
40+
"length": 15,
41+
"line": 13,
42+
"column": 1
43+
}
44+
},
45+
{
46+
"severity": "convention",
47+
"message": "Prefer `JSON.parse` over `JSON.load`.",
48+
"cop_name": "Security/JSONLoad",
49+
"corrected": false,
50+
"correctable": true,
51+
"location": {
52+
"start_line": 19,
53+
"start_column": 6,
54+
"last_line": 19,
55+
"last_column": 9,
56+
"length": 4,
57+
"line": 19,
58+
"column": 6
59+
}
60+
},
61+
{
62+
"severity": "convention",
63+
"message": "Prefer using `YAML.safe_load` over `YAML.load`.",
64+
"cop_name": "Security/YAMLLoad",
65+
"corrected": false,
66+
"correctable": true,
67+
"location": {
68+
"start_line": 22,
69+
"start_column": 6,
70+
"last_line": 22,
71+
"last_column": 9,
72+
"length": 4,
73+
"line": 22,
74+
"column": 6
75+
}
76+
},
77+
{
78+
"severity": "convention",
79+
"message": "The use of `Kernel#open` is a serious security risk.",
80+
"cop_name": "Security/Open",
81+
"corrected": false,
82+
"correctable": false,
83+
"location": {
84+
"start_line": 25,
85+
"start_column": 1,
86+
"last_line": 25,
87+
"last_column": 4,
88+
"length": 4,
89+
"line": 25,
90+
"column": 1
91+
}
92+
},
93+
{
94+
"severity": "convention",
95+
"message": "The use of `Kernel#open` is a serious security risk.",
96+
"cop_name": "Security/Open",
97+
"corrected": false,
98+
"correctable": false,
99+
"location": {
100+
"start_line": 26,
101+
"start_column": 1,
102+
"last_line": 26,
103+
"last_column": 4,
104+
"length": 4,
105+
"line": 26,
106+
"column": 1
107+
}
108+
},
109+
{
110+
"severity": "convention",
111+
"message": "The use of `URI.open` is a serious security risk.",
112+
"cop_name": "Security/Open",
113+
"corrected": false,
114+
"correctable": false,
115+
"location": {
116+
"start_line": 27,
117+
"start_column": 5,
118+
"last_line": 27,
119+
"last_column": 8,
120+
"length": 4,
121+
"line": 27,
122+
"column": 5
123+
}
124+
}
125+
]
126+
}
127+
],
128+
"summary": {
129+
"offense_count": 7,
130+
"target_file_count": 1,
131+
"inspected_file_count": 1
132+
}
133+
}

0 commit comments

Comments
 (0)