File tree 2 files changed +152
-3
lines changed
2 files changed +152
-3
lines changed Original file line number Diff line number Diff line change @@ -629,7 +629,7 @@ linters-settings:
629
629
# - 'import': ruleguard rule imports a package that cannot be found.
630
630
# - 'dsl': gorule file does not comply with the ruleguard DSL.
631
631
# Default: ""
632
- failOn : dsl
632
+ failOn : dsl,import
633
633
# Comma-separated list of file paths containing ruleguard rules.
634
634
# If a path is relative, it is relative to the directory where the golangci-lint command is executed.
635
635
# The special '${configDir}' variable is substituted with the absolute directory containing the golangci config file.
Original file line number Diff line number Diff line change 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
+ "type" : " string"
1251
+ },
1252
+ "rules" : {
1253
+ "type" : " string"
1254
+ }
1255
+ }
1256
+ },
1257
+ "tooManyResultsChecker" : {
1258
+ "type" : " object" ,
1259
+ "additionalProperties" : false ,
1260
+ "properties" : {
1261
+ "maxResults" : {
1262
+ "type" : " number" ,
1263
+ "default" : 5
1264
+ }
1265
+ }
1266
+ },
1267
+ "truncateCmp" : {
1268
+ "type" : " object" ,
1269
+ "additionalProperties" : false ,
1270
+ "properties" : {
1271
+ "skipArchDependent" : {
1272
+ "type" : " boolean" ,
1273
+ "default" : true
1274
+ }
1275
+ }
1276
+ },
1277
+ "underef" : {
1278
+ "type" : " object" ,
1279
+ "additionalProperties" : false ,
1280
+ "properties" : {
1281
+ "skipRecvDeref" : {
1282
+ "type" : " boolean" ,
1283
+ "default" : true
1284
+ }
1285
+ }
1286
+ },
1287
+ "unnamedResult" : {
1288
+ "type" : " object" ,
1289
+ "additionalProperties" : false ,
1290
+ "properties" : {
1291
+ "checkExported" : {
1292
+ "type" : " boolean" ,
1293
+ "default" : false
1294
+ }
1295
+ }
1296
+ }
1148
1297
}
1149
1298
},
1150
1299
"disable-all" : {
You can’t perform that action at this time.
0 commit comments