|
1143 | 1143 | "settings": {
|
1144 | 1144 | "description": "Settings passed to gocritic. Properties must be valid and enabled check names.",
|
1145 | 1145 | "type": "object",
|
1146 |
| - "propertyNames": { |
1147 |
| - "$ref": "#/definitions/gocritic-checks" |
| 1146 | + "additionalProperties": false, |
| 1147 | + "properties": { |
| 1148 | + "captLocal": { |
| 1149 | + "type": "object", |
| 1150 | + "additionalProperties": false, |
| 1151 | + "properties": { |
| 1152 | + "paramsOnly" : { |
| 1153 | + "type": "boolean", |
| 1154 | + "default": true |
| 1155 | + } |
| 1156 | + } |
| 1157 | + }, |
| 1158 | + "commentedOutCode": { |
| 1159 | + "type": "object", |
| 1160 | + "additionalProperties": false, |
| 1161 | + "properties": { |
| 1162 | + "minLength" : { |
| 1163 | + "type": "number", |
| 1164 | + "default": 15 |
| 1165 | + } |
| 1166 | + } |
| 1167 | + }, |
| 1168 | + "elseif": { |
| 1169 | + "type": "object", |
| 1170 | + "additionalProperties": false, |
| 1171 | + "properties": { |
| 1172 | + "skipBalanced" : { |
| 1173 | + "type": "boolean", |
| 1174 | + "default": true |
| 1175 | + } |
| 1176 | + } |
| 1177 | + }, |
| 1178 | + "hugeParam": { |
| 1179 | + "type": "object", |
| 1180 | + "additionalProperties": false, |
| 1181 | + "properties": { |
| 1182 | + "sizeThreshold" : { |
| 1183 | + "type": "number", |
| 1184 | + "default": 80 |
| 1185 | + } |
| 1186 | + } |
| 1187 | + }, |
| 1188 | + "ifElseChain": { |
| 1189 | + "type": "object", |
| 1190 | + "additionalProperties": false, |
| 1191 | + "properties": { |
| 1192 | + "minThreshold" : { |
| 1193 | + "type": "number", |
| 1194 | + "default": 2 |
| 1195 | + } |
| 1196 | + } |
| 1197 | + }, |
| 1198 | + "nestingReduce": { |
| 1199 | + "type": "object", |
| 1200 | + "additionalProperties": false, |
| 1201 | + "properties": { |
| 1202 | + "bodyWidth" : { |
| 1203 | + "type": "number", |
| 1204 | + "default": 5 |
| 1205 | + } |
| 1206 | + } |
| 1207 | + }, |
| 1208 | + "rangeExprCopy": { |
| 1209 | + "type": "object", |
| 1210 | + "additionalProperties": false, |
| 1211 | + "properties": { |
| 1212 | + "sizeThreshold" : { |
| 1213 | + "type": "number", |
| 1214 | + "default": 512 |
| 1215 | + }, |
| 1216 | + "skipTestFuncs" : { |
| 1217 | + "type": "boolean", |
| 1218 | + "default": true |
| 1219 | + } |
| 1220 | + } |
| 1221 | + }, |
| 1222 | + "rangeValCopy": { |
| 1223 | + "type": "object", |
| 1224 | + "additionalProperties": false, |
| 1225 | + "properties": { |
| 1226 | + "sizeThreshold" : { |
| 1227 | + "type": "number", |
| 1228 | + "default": 128 |
| 1229 | + }, |
| 1230 | + "skipTestFuncs" : { |
| 1231 | + "type": "boolean", |
| 1232 | + "default": true |
| 1233 | + } |
| 1234 | + } |
| 1235 | + }, |
| 1236 | + "ruleguard": { |
| 1237 | + "type": "object", |
| 1238 | + "additionalProperties": false, |
| 1239 | + "properties": { |
| 1240 | + "debug" : { |
| 1241 | + "type": "string" |
| 1242 | + }, |
| 1243 | + "enable" : { |
| 1244 | + "type": "string" |
| 1245 | + }, |
| 1246 | + "disable" : { |
| 1247 | + "type": "string" |
| 1248 | + }, |
| 1249 | + "failOn" : { |
| 1250 | + "enum": ["", "all", "dsl", "import"], |
| 1251 | + "default": true |
| 1252 | + }, |
| 1253 | + "rules" : { |
| 1254 | + "type": "string" |
| 1255 | + } |
| 1256 | + } |
| 1257 | + }, |
| 1258 | + "tooManyResultsChecker": { |
| 1259 | + "type": "object", |
| 1260 | + "additionalProperties": false, |
| 1261 | + "properties": { |
| 1262 | + "maxResults" : { |
| 1263 | + "type": "number", |
| 1264 | + "default": 5 |
| 1265 | + } |
| 1266 | + } |
| 1267 | + }, |
| 1268 | + "truncateCmp": { |
| 1269 | + "type": "object", |
| 1270 | + "additionalProperties": false, |
| 1271 | + "properties": { |
| 1272 | + "skipArchDependent" : { |
| 1273 | + "type": "boolean", |
| 1274 | + "default": true |
| 1275 | + } |
| 1276 | + } |
| 1277 | + }, |
| 1278 | + "underef": { |
| 1279 | + "type": "object", |
| 1280 | + "additionalProperties": false, |
| 1281 | + "properties": { |
| 1282 | + "skipRecvDeref" : { |
| 1283 | + "type": "boolean", |
| 1284 | + "default": true |
| 1285 | + } |
| 1286 | + } |
| 1287 | + }, |
| 1288 | + "unnamedResult": { |
| 1289 | + "type": "object", |
| 1290 | + "additionalProperties": false, |
| 1291 | + "properties": { |
| 1292 | + "checkExported" : { |
| 1293 | + "type": "boolean", |
| 1294 | + "default": false |
| 1295 | + } |
| 1296 | + } |
| 1297 | + } |
1148 | 1298 | }
|
1149 | 1299 | },
|
1150 | 1300 | "disable-all": {
|
|
0 commit comments