Skip to content

Commit 3d28c57

Browse files
Namnamseoldez
andauthored
Require type for oneOf mutual exclusion (#5426)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 2c1d661 commit 3d28c57

12 files changed

+42
-9
lines changed

jsonschema/golangci.jsonschema.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3846,7 +3846,8 @@
38463846
{
38473847
"properties": {
38483848
"type": {"enum": ["module"] }
3849-
}
3849+
},
3850+
"required": ["type"]
38503851
},
38513852
{
38523853
"required": ["path"]

jsonschema/golangci.next.jsonschema.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3846,7 +3846,8 @@
38463846
{
38473847
"properties": {
38483848
"type": {"enum": ["module"] }
3849-
}
3849+
},
3850+
"required": ["type"]
38503851
},
38513852
{
38523853
"required": ["path"]

jsonschema/golangci.v1.57.jsonschema.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3198,7 +3198,8 @@
31983198
{
31993199
"properties": {
32003200
"type": {"enum": ["module"] }
3201-
}
3201+
},
3202+
"required": ["type"]
32023203
},
32033204
{
32043205
"required": ["path"]

jsonschema/golangci.v1.58.jsonschema.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3356,7 +3356,8 @@
33563356
{
33573357
"properties": {
33583358
"type": {"enum": ["module"] }
3359-
}
3359+
},
3360+
"required": ["type"]
33603361
},
33613362
{
33623363
"required": ["path"]

jsonschema/golangci.v1.59.jsonschema.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3484,7 +3484,8 @@
34843484
{
34853485
"properties": {
34863486
"type": {"enum": ["module"] }
3487-
}
3487+
},
3488+
"required": ["type"]
34883489
},
34893490
{
34903491
"required": ["path"]

jsonschema/golangci.v1.60.jsonschema.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3510,7 +3510,8 @@
35103510
{
35113511
"properties": {
35123512
"type": {"enum": ["module"] }
3513-
}
3513+
},
3514+
"required": ["type"]
35143515
},
35153516
{
35163517
"required": ["path"]

jsonschema/golangci.v1.61.jsonschema.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3515,7 +3515,8 @@
35153515
{
35163516
"properties": {
35173517
"type": {"enum": ["module"] }
3518-
}
3518+
},
3519+
"required": ["type"]
35193520
},
35203521
{
35213522
"required": ["path"]

jsonschema/golangci.v1.62.jsonschema.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3578,7 +3578,8 @@
35783578
{
35793579
"properties": {
35803580
"type": {"enum": ["module"] }
3581-
}
3581+
},
3582+
"required": ["type"]
35823583
},
35833584
{
35843585
"required": ["path"]

jsonschema/golangci.v1.63.jsonschema.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3795,7 +3795,8 @@
37953795
{
37963796
"properties": {
37973797
"type": {"enum": ["module"] }
3798-
}
3798+
},
3799+
"required": ["type"]
37993800
},
38003801
{
38013802
"required": ["path"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
linters-settings:
2+
custom:
3+
foo:
4+
type: "goplugin"
5+
path: "bin/linter/myplugin.so"
6+
description: I am a Go plugin system-based custom linter.
7+
settings:
8+
message: hello
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
linters-settings:
2+
custom:
3+
foo:
4+
type: "module"
5+
description: I am a module-based custom linter.
6+
settings:
7+
message: hello
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
linters-settings:
2+
custom:
3+
foo:
4+
path: "bin/linter/myplugin.so"
5+
description: >
6+
I didn't specify the type, so I am a Go plugin system-based custom linter.
7+
As such, I need to be specified the path.
8+
settings:
9+
message: hello

0 commit comments

Comments
 (0)