|
11 | 11 | "uri": "bad.go" |
12 | 12 | }, |
13 | 13 | "region": { |
14 | | - "startColumn": 18, |
15 | | - "startLine": 8 |
| 14 | + "startColumn": 1, |
| 15 | + "startLine": 7 |
16 | 16 | } |
17 | 17 | } |
18 | 18 | } |
19 | 19 | ], |
20 | 20 | "message": { |
21 | | - "text": "parameter 'a' seems to be unused, consider removing or renaming it as _" |
| 21 | + "text": "comment on exported function BadFunction should be of the form \"BadFunction ...\"" |
22 | 22 | }, |
23 | | - "ruleId": "unused-parameter" |
| 23 | + "ruleId": "exported" |
24 | 24 | }, |
25 | 25 | { |
26 | 26 | "locations": [ |
|
30 | 30 | "uri": "bad.go" |
31 | 31 | }, |
32 | 32 | "region": { |
33 | | - "startColumn": 25, |
34 | | - "startLine": 8 |
| 33 | + "startColumn": 1, |
| 34 | + "startLine": 22 |
35 | 35 | } |
36 | 36 | } |
37 | 37 | } |
38 | 38 | ], |
39 | 39 | "message": { |
40 | | - "text": "parameter 'b' seems to be unused, consider removing or renaming it as _" |
| 40 | + "text": "comment on exported function LongLine should be of the form \"LongLine ...\"" |
41 | 41 | }, |
42 | | - "ruleId": "unused-parameter" |
| 42 | + "ruleId": "exported" |
43 | 43 | }, |
44 | 44 | { |
45 | 45 | "locations": [ |
|
49 | 49 | "uri": "bad.go" |
50 | 50 | }, |
51 | 51 | "region": { |
52 | | - "startColumn": 32, |
53 | | - "startLine": 8 |
| 52 | + "startColumn": 1, |
| 53 | + "startLine": 27 |
54 | 54 | } |
55 | 55 | } |
56 | 56 | } |
57 | 57 | ], |
58 | 58 | "message": { |
59 | | - "text": "parameter 'c' seems to be unused, consider removing or renaming it as _" |
| 59 | + "text": "comment on exported function NakedReturn should be of the form \"NakedReturn ...\"" |
60 | 60 | }, |
61 | | - "ruleId": "unused-parameter" |
| 61 | + "ruleId": "exported" |
62 | 62 | }, |
63 | 63 | { |
64 | 64 | "locations": [ |
|
68 | 68 | "uri": "bad.go" |
69 | 69 | }, |
70 | 70 | "region": { |
71 | | - "startColumn": 39, |
72 | | - "startLine": 8 |
| 71 | + "startColumn": 1, |
| 72 | + "startLine": 1 |
73 | 73 | } |
74 | 74 | } |
75 | 75 | } |
76 | 76 | ], |
77 | 77 | "message": { |
78 | | - "text": "parameter 'd' seems to be unused, consider removing or renaming it as _" |
| 78 | + "text": "should have a package comment" |
79 | 79 | }, |
80 | | - "ruleId": "unused-parameter" |
| 80 | + "ruleId": "package-comments" |
81 | 81 | }, |
82 | 82 | { |
83 | 83 | "locations": [ |
|
87 | 87 | "uri": "bad.go" |
88 | 88 | }, |
89 | 89 | "region": { |
90 | | - "startColumn": 46, |
| 90 | + "startColumn": 18, |
91 | 91 | "startLine": 8 |
92 | 92 | } |
93 | 93 | } |
94 | 94 | } |
95 | 95 | ], |
96 | 96 | "message": { |
97 | | - "text": "parameter 'e' seems to be unused, consider removing or renaming it as _" |
| 97 | + "text": "parameter 'a' seems to be unused, consider removing or renaming it as _" |
98 | 98 | }, |
99 | 99 | "ruleId": "unused-parameter" |
100 | 100 | }, |
|
106 | 106 | "uri": "bad.go" |
107 | 107 | }, |
108 | 108 | "region": { |
109 | | - "startColumn": 17, |
110 | | - "startLine": 18 |
| 109 | + "startColumn": 25, |
| 110 | + "startLine": 8 |
111 | 111 | } |
112 | 112 | } |
113 | 113 | } |
114 | 114 | ], |
115 | 115 | "message": { |
116 | | - "text": "parameter 'unused' seems to be unused, consider removing or renaming it as _" |
| 116 | + "text": "parameter 'b' seems to be unused, consider removing or renaming it as _" |
117 | 117 | }, |
118 | 118 | "ruleId": "unused-parameter" |
119 | 119 | }, |
|
125 | 125 | "uri": "bad.go" |
126 | 126 | }, |
127 | 127 | "region": { |
128 | | - "startColumn": 1, |
129 | | - "startLine": 7 |
130 | | - } |
131 | | - } |
132 | | - } |
133 | | - ], |
134 | | - "message": { |
135 | | - "text": "comment on exported function BadFunction should be of the form \"BadFunction ...\"" |
136 | | - }, |
137 | | - "ruleId": "exported" |
138 | | - }, |
139 | | - { |
140 | | - "locations": [ |
141 | | - { |
142 | | - "physicalLocation": { |
143 | | - "artifactLocation": { |
144 | | - "uri": "bad.go" |
145 | | - }, |
146 | | - "region": { |
147 | | - "startColumn": 1, |
148 | | - "startLine": 22 |
| 128 | + "startColumn": 32, |
| 129 | + "startLine": 8 |
149 | 130 | } |
150 | 131 | } |
151 | 132 | } |
152 | 133 | ], |
153 | 134 | "message": { |
154 | | - "text": "comment on exported function LongLine should be of the form \"LongLine ...\"" |
| 135 | + "text": "parameter 'c' seems to be unused, consider removing or renaming it as _" |
155 | 136 | }, |
156 | | - "ruleId": "exported" |
| 137 | + "ruleId": "unused-parameter" |
157 | 138 | }, |
158 | 139 | { |
159 | 140 | "locations": [ |
|
163 | 144 | "uri": "bad.go" |
164 | 145 | }, |
165 | 146 | "region": { |
166 | | - "startColumn": 1, |
167 | | - "startLine": 27 |
| 147 | + "startColumn": 39, |
| 148 | + "startLine": 8 |
168 | 149 | } |
169 | 150 | } |
170 | 151 | } |
171 | 152 | ], |
172 | 153 | "message": { |
173 | | - "text": "comment on exported function NakedReturn should be of the form \"NakedReturn ...\"" |
| 154 | + "text": "parameter 'd' seems to be unused, consider removing or renaming it as _" |
174 | 155 | }, |
175 | | - "ruleId": "exported" |
| 156 | + "ruleId": "unused-parameter" |
176 | 157 | }, |
177 | 158 | { |
178 | 159 | "locations": [ |
|
182 | 163 | "uri": "bad.go" |
183 | 164 | }, |
184 | 165 | "region": { |
185 | | - "startColumn": 10, |
186 | | - "startLine": 9 |
| 166 | + "startColumn": 46, |
| 167 | + "startLine": 8 |
187 | 168 | } |
188 | 169 | } |
189 | 170 | } |
190 | 171 | ], |
191 | 172 | "message": { |
192 | | - "text": "should omit type int from declaration of var foo; it will be inferred from the right-hand side" |
| 173 | + "text": "parameter 'e' seems to be unused, consider removing or renaming it as _" |
193 | 174 | }, |
194 | | - "ruleId": "var-declaration" |
| 175 | + "ruleId": "unused-parameter" |
195 | 176 | }, |
196 | 177 | { |
197 | 178 | "locations": [ |
|
201 | 182 | "uri": "bad.go" |
202 | 183 | }, |
203 | 184 | "region": { |
204 | | - "startColumn": 1, |
205 | | - "startLine": 1 |
| 185 | + "startColumn": 17, |
| 186 | + "startLine": 18 |
206 | 187 | } |
207 | 188 | } |
208 | 189 | } |
209 | 190 | ], |
210 | 191 | "message": { |
211 | | - "text": "should have a package comment" |
| 192 | + "text": "parameter 'unused' seems to be unused, consider removing or renaming it as _" |
212 | 193 | }, |
213 | | - "ruleId": "package-comments" |
| 194 | + "ruleId": "unused-parameter" |
214 | 195 | } |
215 | 196 | ], |
216 | 197 | "tool": { |
|
0 commit comments