Skip to content

Commit 9d18d96

Browse files
committed
review: add json schema
1 parent abb0adb commit 9d18d96

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-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.
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.
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

+21
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,27 @@
10041004
}
10051005
}
10061006
},
1007+
"filen": {
1008+
"type": "object",
1009+
"additionalProperties": false,
1010+
"properties": {
1011+
"ignore-comments": {
1012+
"description": "Ignore comments when counting lines.",
1013+
"type": "boolean",
1014+
"default": false
1015+
},
1016+
"max-lines": {
1017+
"description": "Max number of lines in a file.",
1018+
"type": "integer",
1019+
"default": 500
1020+
},
1021+
"min-lines": {
1022+
"description": "Min number of lines in a file.",
1023+
"type": "integer",
1024+
"default": 5
1025+
}
1026+
}
1027+
},
10071028
"forbidigo": {
10081029
"type": "object",
10091030
"additionalProperties": false,

0 commit comments

Comments
 (0)