Skip to content

Commit 87fa73c

Browse files
committed
review: add json schema
1 parent abb0adb commit 87fa73c

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.golangci.next.reference.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -538,12 +538,12 @@ linters-settings:
538538
# Ignore comments when counting lines.
539539
# Default false
540540
ignore-comments: true
541-
# Max number of lines in a file setting
541+
# Max number of lines in a file setting.
542542
# Default: 500
543-
max-lines-num: 1000
544-
# Min number of lines in a file setting
543+
max-lines: 1000
544+
# Min number of lines in a file setting.
545545
# Default: 5
546-
min-lines-num: 1
546+
min-lines: 1
547547

548548
forbidigo:
549549
# Forbid the following identifiers (list of regexp).

jsonschema/golangci.next.jsonschema.json

+18
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,24 @@
10041004
}
10051005
}
10061006
},
1007+
"filen": {
1008+
"type": "object",
1009+
"additionalProperties": false,
1010+
"properties": {
1011+
"ignore-comments": {
1012+
"type": "boolean",
1013+
"default": false
1014+
},
1015+
"max-lines": {
1016+
"type": "integer",
1017+
"default": 500
1018+
},
1019+
"min-lines": {
1020+
"type": "integer",
1021+
"default": 5
1022+
}
1023+
}
1024+
},
10071025
"forbidigo": {
10081026
"type": "object",
10091027
"additionalProperties": false,

0 commit comments

Comments
 (0)