Skip to content

Commit 5b4973b

Browse files
committed
[PLUTO-1431] fx expected
1 parent bdb065e commit 5b4973b

File tree

2 files changed

+226
-100
lines changed

2 files changed

+226
-100
lines changed

config-file/config-file.go

Lines changed: 0 additions & 100 deletions
This file was deleted.
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
3+
"runs": [
4+
{
5+
"results": [
6+
{
7+
"locations": [
8+
{
9+
"physicalLocation": {
10+
"artifactLocation": {
11+
"uri": "bad.go"
12+
},
13+
"region": {
14+
"startColumn": 10,
15+
"startLine": 9
16+
}
17+
}
18+
}
19+
],
20+
"message": {
21+
"text": "should omit type int from declaration of var foo; it will be inferred from the right-hand side"
22+
},
23+
"ruleId": "var-declaration"
24+
},
25+
{
26+
"locations": [
27+
{
28+
"physicalLocation": {
29+
"artifactLocation": {
30+
"uri": "bad.go"
31+
},
32+
"region": {
33+
"startColumn": 1,
34+
"startLine": 1
35+
}
36+
}
37+
}
38+
],
39+
"message": {
40+
"text": "should have a package comment"
41+
},
42+
"ruleId": "package-comments"
43+
},
44+
{
45+
"locations": [
46+
{
47+
"physicalLocation": {
48+
"artifactLocation": {
49+
"uri": "bad.go"
50+
},
51+
"region": {
52+
"startColumn": 1,
53+
"startLine": 7
54+
}
55+
}
56+
}
57+
],
58+
"message": {
59+
"text": "comment on exported function BadFunction should be of the form \"BadFunction ...\""
60+
},
61+
"ruleId": "exported"
62+
},
63+
{
64+
"locations": [
65+
{
66+
"physicalLocation": {
67+
"artifactLocation": {
68+
"uri": "bad.go"
69+
},
70+
"region": {
71+
"startColumn": 1,
72+
"startLine": 22
73+
}
74+
}
75+
}
76+
],
77+
"message": {
78+
"text": "comment on exported function LongLine should be of the form \"LongLine ...\""
79+
},
80+
"ruleId": "exported"
81+
},
82+
{
83+
"locations": [
84+
{
85+
"physicalLocation": {
86+
"artifactLocation": {
87+
"uri": "bad.go"
88+
},
89+
"region": {
90+
"startColumn": 1,
91+
"startLine": 27
92+
}
93+
}
94+
}
95+
],
96+
"message": {
97+
"text": "comment on exported function NakedReturn should be of the form \"NakedReturn ...\""
98+
},
99+
"ruleId": "exported"
100+
},
101+
{
102+
"locations": [
103+
{
104+
"physicalLocation": {
105+
"artifactLocation": {
106+
"uri": "bad.go"
107+
},
108+
"region": {
109+
"startColumn": 18,
110+
"startLine": 8
111+
}
112+
}
113+
}
114+
],
115+
"message": {
116+
"text": "parameter 'a' seems to be unused, consider removing or renaming it as _"
117+
},
118+
"ruleId": "unused-parameter"
119+
},
120+
{
121+
"locations": [
122+
{
123+
"physicalLocation": {
124+
"artifactLocation": {
125+
"uri": "bad.go"
126+
},
127+
"region": {
128+
"startColumn": 25,
129+
"startLine": 8
130+
}
131+
}
132+
}
133+
],
134+
"message": {
135+
"text": "parameter 'b' seems to be unused, consider removing or renaming it as _"
136+
},
137+
"ruleId": "unused-parameter"
138+
},
139+
{
140+
"locations": [
141+
{
142+
"physicalLocation": {
143+
"artifactLocation": {
144+
"uri": "bad.go"
145+
},
146+
"region": {
147+
"startColumn": 32,
148+
"startLine": 8
149+
}
150+
}
151+
}
152+
],
153+
"message": {
154+
"text": "parameter 'c' seems to be unused, consider removing or renaming it as _"
155+
},
156+
"ruleId": "unused-parameter"
157+
},
158+
{
159+
"locations": [
160+
{
161+
"physicalLocation": {
162+
"artifactLocation": {
163+
"uri": "bad.go"
164+
},
165+
"region": {
166+
"startColumn": 39,
167+
"startLine": 8
168+
}
169+
}
170+
}
171+
],
172+
"message": {
173+
"text": "parameter 'd' seems to be unused, consider removing or renaming it as _"
174+
},
175+
"ruleId": "unused-parameter"
176+
},
177+
{
178+
"locations": [
179+
{
180+
"physicalLocation": {
181+
"artifactLocation": {
182+
"uri": "bad.go"
183+
},
184+
"region": {
185+
"startColumn": 46,
186+
"startLine": 8
187+
}
188+
}
189+
}
190+
],
191+
"message": {
192+
"text": "parameter 'e' seems to be unused, consider removing or renaming it as _"
193+
},
194+
"ruleId": "unused-parameter"
195+
},
196+
{
197+
"locations": [
198+
{
199+
"physicalLocation": {
200+
"artifactLocation": {
201+
"uri": "bad.go"
202+
},
203+
"region": {
204+
"startColumn": 17,
205+
"startLine": 18
206+
}
207+
}
208+
}
209+
],
210+
"message": {
211+
"text": "parameter 'unused' seems to be unused, consider removing or renaming it as _"
212+
},
213+
"ruleId": "unused-parameter"
214+
}
215+
],
216+
"tool": {
217+
"driver": {
218+
"informationUri": "https://github.com/mgechev/revive",
219+
"name": "revive",
220+
"rules": null
221+
}
222+
}
223+
}
224+
],
225+
"version": "2.1.0"
226+
}

0 commit comments

Comments
 (0)