|
385 | 385 | "additionalProperties": false
|
386 | 386 | }
|
387 | 387 | },
|
| 388 | + "type": "object", |
| 389 | + "additionalProperties": false, |
388 | 390 | "properties": {
|
389 | 391 | "run": {
|
390 | 392 | "description": "Options for analysis running,",
|
391 | 393 | "type": "object",
|
| 394 | + "additionalProperties": false, |
392 | 395 | "properties": {
|
393 | 396 | "concurrency": {
|
394 | 397 | "description": "Number of concurrent runners. Defaults to the number of available CPU cores.",
|
|
441 | 444 | "type": "string",
|
442 | 445 | "default": "1.17"
|
443 | 446 | }
|
444 |
| - }, |
445 |
| - "additionalProperties": false |
| 447 | + } |
446 | 448 | },
|
447 | 449 | "output": {
|
448 | 450 | "description": "Output configuration options.",
|
449 | 451 | "type": "object",
|
| 452 | + "additionalProperties": false, |
450 | 453 | "properties": {
|
451 | 454 | "format": {
|
452 | 455 | "description": "Output format to use.",
|
|
494 | 497 | "type": "boolean",
|
495 | 498 | "default": true
|
496 | 499 | }
|
497 |
| - }, |
498 |
| - "additionalProperties": false |
| 500 | + } |
499 | 501 | },
|
500 | 502 | "linters-settings": {
|
501 | 503 | "description": "All available settings of specific linters.",
|
502 | 504 | "type": "object",
|
| 505 | + "additionalProperties": false, |
503 | 506 | "properties": {
|
504 | 507 | "dupword": {
|
505 | 508 | "type": "object",
|
|
683 | 686 | "patternProperties": {
|
684 | 687 | "^[^.]+$": {
|
685 | 688 | "description": "Name of a rule.",
|
686 |
| - "additionalProperties": false, |
687 | 689 | "type": "object",
|
| 690 | + "additionalProperties": false, |
688 | 691 | "properties": {
|
689 | 692 | "list-mode": {
|
690 | 693 | "description": "Used to determine the package matching priority.",
|
|
709 | 712 | },
|
710 | 713 | "deny": {
|
711 | 714 | "description": "Packages that are not allowed where the value is a suggestion.",
|
712 |
| - "additionalProperties": false, |
713 | 715 | "type": "array",
|
714 | 716 | "items": {
|
715 |
| - "additionalProperties": false, |
716 | 717 | "type": "object",
|
| 718 | + "additionalProperties": false, |
717 | 719 | "properties": {
|
718 | 720 | "desc": {
|
719 | 721 | "description": "Description",
|
|
936 | 938 | },
|
937 | 939 | {
|
938 | 940 | "type": "object",
|
| 941 | + "additionalProperties": false, |
939 | 942 | "properties": {
|
940 | 943 | "p": {
|
941 | 944 | "description": "Pattern",
|
|
949 | 952 | "description": "Message",
|
950 | 953 | "type": "string"
|
951 | 954 | }
|
952 |
| - }, |
953 |
| - "additionalProperties": false |
| 955 | + } |
954 | 956 | }
|
955 | 957 | ]
|
956 | 958 | }
|
|
1236 | 1238 | "type": "array",
|
1237 | 1239 | "items": {
|
1238 | 1240 | "type": "object",
|
| 1241 | + "additionalProperties": false, |
1239 | 1242 | "properties": {
|
1240 | 1243 | "pattern": {
|
1241 | 1244 | "type": "string"
|
1242 | 1245 | },
|
1243 | 1246 | "replacement": {
|
1244 | 1247 | "type": "string"
|
1245 | 1248 | }
|
1246 |
| - }, |
1247 |
| - "additionalProperties": false |
| 1249 | + } |
1248 | 1250 | }
|
1249 | 1251 | }
|
1250 | 1252 | }
|
|
1285 | 1287 | "properties": {
|
1286 | 1288 | "values": {
|
1287 | 1289 | "type": "object",
|
| 1290 | + "additionalProperties": false, |
1288 | 1291 | "properties": {
|
1289 | 1292 | "const": {
|
1290 | 1293 | "description": "Constants to use in the template.",
|
|
1427 | 1430 | "properties": {
|
1428 | 1431 | "allowed": {
|
1429 | 1432 | "type": "object",
|
| 1433 | + "additionalProperties": false, |
1430 | 1434 | "properties": {
|
1431 | 1435 | "modules": {
|
1432 | 1436 | "description": "List of allowed modules.",
|
|
1448 | 1452 | },
|
1449 | 1453 | "blocked": {
|
1450 | 1454 | "type": "object",
|
| 1455 | + "additionalProperties": false, |
1451 | 1456 | "properties": {
|
1452 | 1457 | "modules": {
|
1453 | 1458 | "description": "List of blocked modules.",
|
|
1457 | 1462 | "patternProperties": {
|
1458 | 1463 | "^.+$": {
|
1459 | 1464 | "type": "object",
|
| 1465 | + "additionalProperties": false, |
1460 | 1466 | "properties": {
|
1461 | 1467 | "recommendations": {
|
1462 | 1468 | "description": "Recommended modules that should be used instead.",
|
|
1483 | 1489 | "patternProperties": {
|
1484 | 1490 | "^.*$": {
|
1485 | 1491 | "type": "object",
|
| 1492 | + "additionalProperties": false, |
1486 | 1493 | "properties": {
|
1487 | 1494 | "version": {
|
1488 | 1495 | "description": "Version constraint.",
|
|
1713 | 1720 | "type": "array",
|
1714 | 1721 | "items": {
|
1715 | 1722 | "type": "object",
|
| 1723 | + "additionalProperties": false, |
1716 | 1724 | "properties": {
|
1717 | 1725 | "pkg": {
|
1718 | 1726 | "description": "Package path e.g. knative.dev/serving/pkg/apis/autoscaling/v1alpha1",
|
|
1917 | 1925 | "type": "array",
|
1918 | 1926 | "items": {
|
1919 | 1927 | "type": "object",
|
| 1928 | + "additionalProperties": false, |
1920 | 1929 | "properties": {
|
1921 | 1930 | "name": {
|
1922 | 1931 | "type": "string"
|
|
1927 | 1936 | "arg-pos": {
|
1928 | 1937 | "type": "integer"
|
1929 | 1938 | }
|
1930 |
| - }, |
1931 |
| - "additionalProperties": false |
| 1939 | + } |
1932 | 1940 | }
|
1933 | 1941 | }
|
1934 | 1942 | }
|
|
2564 | 2572 | "properties": {
|
2565 | 2573 | "case": {
|
2566 | 2574 | "type": "object",
|
| 2575 | + "additionalProperties": false, |
2567 | 2576 | "properties": {
|
2568 | 2577 | "use-field-name": {
|
2569 | 2578 | "description": "Use the struct field name to check the name of the struct tag.",
|
|
2758 | 2767 | },
|
2759 | 2768 | "benchmark": {
|
2760 | 2769 | "type": "object",
|
| 2770 | + "additionalProperties": false, |
2761 | 2771 | "properties": {
|
2762 | 2772 | "begin": {
|
2763 | 2773 | "description": "Check if `b.Helper()` begins helper function.",
|
|
2778 | 2788 | },
|
2779 | 2789 | "tb": {
|
2780 | 2790 | "type": "object",
|
| 2791 | + "additionalProperties": false, |
2781 | 2792 | "properties": {
|
2782 | 2793 | "begin": {
|
2783 | 2794 | "description": "Check if `tb.Helper()` begins helper function.",
|
|
2798 | 2809 | },
|
2799 | 2810 | "fuzz": {
|
2800 | 2811 | "type": "object",
|
| 2812 | + "additionalProperties": false, |
2801 | 2813 | "properties": {
|
2802 | 2814 | "begin": {
|
2803 | 2815 | "description": "Check if `f.Helper()` begins helper function.",
|
|
3209 | 3221 | }
|
3210 | 3222 | }
|
3211 | 3223 | }
|
3212 |
| - }, |
3213 |
| - "additionalProperties": false |
| 3224 | + } |
3214 | 3225 | },
|
3215 | 3226 | "linters": {
|
3216 | 3227 | "type": "object",
|
| 3228 | + "additionalProperties": false, |
3217 | 3229 | "properties": {
|
3218 | 3230 | "enable": {
|
3219 | 3231 | "description": "List of enabled linters.",
|
|
3265 | 3277 | "type": "boolean",
|
3266 | 3278 | "default": false
|
3267 | 3279 | }
|
3268 |
| - }, |
3269 |
| - "additionalProperties": false |
| 3280 | + } |
3270 | 3281 | },
|
3271 | 3282 | "issues": {
|
3272 | 3283 | "type": "object",
|
| 3284 | + "additionalProperties": false, |
3273 | 3285 | "properties": {
|
3274 | 3286 | "exclude": {
|
3275 | 3287 | "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 | 3295 | "type": "array",
|
3284 | 3296 | "items": {
|
3285 | 3297 | "type": "object",
|
| 3298 | + "additionalProperties": false, |
3286 | 3299 | "properties": {
|
3287 | 3300 | "path": {
|
3288 | 3301 | "type": "string"
|
|
3391 | 3404 | "type": "boolean",
|
3392 | 3405 | "default": false
|
3393 | 3406 | }
|
3394 |
| - }, |
3395 |
| - "additionalProperties": false |
| 3407 | + } |
3396 | 3408 | },
|
3397 | 3409 | "severity": {
|
3398 | 3410 | "type": "object",
|
| 3411 | + "additionalProperties": false, |
3399 | 3412 | "properties": {
|
3400 | 3413 | "default-severity": {
|
3401 | 3414 | "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 | 3454 | "default": []
|
3442 | 3455 | }
|
3443 | 3456 | },
|
3444 |
| - "required": ["default-severity"], |
3445 |
| - "additionalProperties": false |
| 3457 | + "required": ["default-severity"] |
3446 | 3458 | }
|
3447 |
| - }, |
3448 |
| - "additionalProperties": false, |
3449 |
| - "type": "object" |
| 3459 | + } |
3450 | 3460 | }
|
0 commit comments