Skip to content

Commit e943fbf

Browse files
committed
fix: check every object for missing additionalProperties
1 parent dd731d4 commit e943fbf

File tree

1 file changed

+34
-24
lines changed

1 file changed

+34
-24
lines changed

jsonschema/golangci.next.jsonschema.json

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,13 @@
385385
"additionalProperties": false
386386
}
387387
},
388+
"type": "object",
389+
"additionalProperties": false,
388390
"properties": {
389391
"run": {
390392
"description": "Options for analysis running,",
391393
"type": "object",
394+
"additionalProperties": false,
392395
"properties": {
393396
"concurrency": {
394397
"description": "Number of concurrent runners. Defaults to the number of available CPU cores.",
@@ -441,12 +444,12 @@
441444
"type": "string",
442445
"default": "1.17"
443446
}
444-
},
445-
"additionalProperties": false
447+
}
446448
},
447449
"output": {
448450
"description": "Output configuration options.",
449451
"type": "object",
452+
"additionalProperties": false,
450453
"properties": {
451454
"format": {
452455
"description": "Output format to use.",
@@ -494,12 +497,12 @@
494497
"type": "boolean",
495498
"default": true
496499
}
497-
},
498-
"additionalProperties": false
500+
}
499501
},
500502
"linters-settings": {
501503
"description": "All available settings of specific linters.",
502504
"type": "object",
505+
"additionalProperties": false,
503506
"properties": {
504507
"dupword": {
505508
"type": "object",
@@ -683,8 +686,8 @@
683686
"patternProperties": {
684687
"^[^.]+$": {
685688
"description": "Name of a rule.",
686-
"additionalProperties": false,
687689
"type": "object",
690+
"additionalProperties": false,
688691
"properties": {
689692
"list-mode": {
690693
"description": "Used to determine the package matching priority.",
@@ -709,11 +712,10 @@
709712
},
710713
"deny": {
711714
"description": "Packages that are not allowed where the value is a suggestion.",
712-
"additionalProperties": false,
713715
"type": "array",
714716
"items": {
715-
"additionalProperties": false,
716717
"type": "object",
718+
"additionalProperties": false,
717719
"properties": {
718720
"desc": {
719721
"description": "Description",
@@ -936,6 +938,7 @@
936938
},
937939
{
938940
"type": "object",
941+
"additionalProperties": false,
939942
"properties": {
940943
"p": {
941944
"description": "Pattern",
@@ -949,8 +952,7 @@
949952
"description": "Message",
950953
"type": "string"
951954
}
952-
},
953-
"additionalProperties": false
955+
}
954956
}
955957
]
956958
}
@@ -1236,15 +1238,15 @@
12361238
"type": "array",
12371239
"items": {
12381240
"type": "object",
1241+
"additionalProperties": false,
12391242
"properties": {
12401243
"pattern": {
12411244
"type": "string"
12421245
},
12431246
"replacement": {
12441247
"type": "string"
12451248
}
1246-
},
1247-
"additionalProperties": false
1249+
}
12481250
}
12491251
}
12501252
}
@@ -1285,6 +1287,7 @@
12851287
"properties": {
12861288
"values": {
12871289
"type": "object",
1290+
"additionalProperties": false,
12881291
"properties": {
12891292
"const": {
12901293
"description": "Constants to use in the template.",
@@ -1427,6 +1430,7 @@
14271430
"properties": {
14281431
"allowed": {
14291432
"type": "object",
1433+
"additionalProperties": false,
14301434
"properties": {
14311435
"modules": {
14321436
"description": "List of allowed modules.",
@@ -1448,6 +1452,7 @@
14481452
},
14491453
"blocked": {
14501454
"type": "object",
1455+
"additionalProperties": false,
14511456
"properties": {
14521457
"modules": {
14531458
"description": "List of blocked modules.",
@@ -1457,6 +1462,7 @@
14571462
"patternProperties": {
14581463
"^.+$": {
14591464
"type": "object",
1465+
"additionalProperties": false,
14601466
"properties": {
14611467
"recommendations": {
14621468
"description": "Recommended modules that should be used instead.",
@@ -1483,6 +1489,7 @@
14831489
"patternProperties": {
14841490
"^.*$": {
14851491
"type": "object",
1492+
"additionalProperties": false,
14861493
"properties": {
14871494
"version": {
14881495
"description": "Version constraint.",
@@ -1713,6 +1720,7 @@
17131720
"type": "array",
17141721
"items": {
17151722
"type": "object",
1723+
"additionalProperties": false,
17161724
"properties": {
17171725
"pkg": {
17181726
"description": "Package path e.g. knative.dev/serving/pkg/apis/autoscaling/v1alpha1",
@@ -1917,6 +1925,7 @@
19171925
"type": "array",
19181926
"items": {
19191927
"type": "object",
1928+
"additionalProperties": false,
19201929
"properties": {
19211930
"name": {
19221931
"type": "string"
@@ -1927,8 +1936,7 @@
19271936
"arg-pos": {
19281937
"type": "integer"
19291938
}
1930-
},
1931-
"additionalProperties": false
1939+
}
19321940
}
19331941
}
19341942
}
@@ -2564,6 +2572,7 @@
25642572
"properties": {
25652573
"case": {
25662574
"type": "object",
2575+
"additionalProperties": false,
25672576
"properties": {
25682577
"use-field-name": {
25692578
"description": "Use the struct field name to check the name of the struct tag.",
@@ -2758,6 +2767,7 @@
27582767
},
27592768
"benchmark": {
27602769
"type": "object",
2770+
"additionalProperties": false,
27612771
"properties": {
27622772
"begin": {
27632773
"description": "Check if `b.Helper()` begins helper function.",
@@ -2778,6 +2788,7 @@
27782788
},
27792789
"tb": {
27802790
"type": "object",
2791+
"additionalProperties": false,
27812792
"properties": {
27822793
"begin": {
27832794
"description": "Check if `tb.Helper()` begins helper function.",
@@ -2798,6 +2809,7 @@
27982809
},
27992810
"fuzz": {
28002811
"type": "object",
2812+
"additionalProperties": false,
28012813
"properties": {
28022814
"begin": {
28032815
"description": "Check if `f.Helper()` begins helper function.",
@@ -3209,11 +3221,11 @@
32093221
}
32103222
}
32113223
}
3212-
},
3213-
"additionalProperties": false
3224+
}
32143225
},
32153226
"linters": {
32163227
"type": "object",
3228+
"additionalProperties": false,
32173229
"properties": {
32183230
"enable": {
32193231
"description": "List of enabled linters.",
@@ -3265,11 +3277,11 @@
32653277
"type": "boolean",
32663278
"default": false
32673279
}
3268-
},
3269-
"additionalProperties": false
3280+
}
32703281
},
32713282
"issues": {
32723283
"type": "object",
3284+
"additionalProperties": false,
32733285
"properties": {
32743286
"exclude": {
32753287
"description": "List of regular expressions of issue texts to exclude.\nBut independently from this option we use default exclude patterns. Their usage can be controlled through `exclude-use-default`.",
@@ -3283,6 +3295,7 @@
32833295
"type": "array",
32843296
"items": {
32853297
"type": "object",
3298+
"additionalProperties": false,
32863299
"properties": {
32873300
"path": {
32883301
"type": "string"
@@ -3391,11 +3404,11 @@
33913404
"type": "boolean",
33923405
"default": false
33933406
}
3394-
},
3395-
"additionalProperties": false
3407+
}
33963408
},
33973409
"severity": {
33983410
"type": "object",
3411+
"additionalProperties": false,
33993412
"properties": {
34003413
"default-severity": {
34013414
"description": "Set the default severity for issues. If severity rules are defined and the issues do not match or no severity is provided to the rule this will be the default severity applied. Severities should match the supported severity names of the selected out format.",
@@ -3441,10 +3454,7 @@
34413454
"default": []
34423455
}
34433456
},
3444-
"required": ["default-severity"],
3445-
"additionalProperties": false
3457+
"required": ["default-severity"]
34463458
}
3447-
},
3448-
"additionalProperties": false,
3449-
"type": "object"
3459+
}
34503460
}

0 commit comments

Comments
 (0)