Skip to content

Commit 96e6c64

Browse files
ldezDanilXO
authored andcommitted
review: add json schema
1 parent 5a30757 commit 96e6c64

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
@@ -540,12 +540,12 @@ linters-settings:
540540
# Ignore comments when counting lines.
541541
# Default false
542542
ignore-comments: true
543-
# Max number of lines in a file setting
543+
# Max number of lines in a file.
544544
# Default: 500
545-
max-lines-num: 1000
546-
# Min number of lines in a file setting
545+
max-lines: 1000
546+
# Min number of lines in a file.
547547
# Default: 5
548-
min-lines-num: 1
548+
min-lines: 1
549549

550550
forbidigo:
551551
# Forbid the following identifiers (list of regexp).

jsonschema/golangci.next.jsonschema.json

+21
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,27 @@
10121012
}
10131013
}
10141014
},
1015+
"filen": {
1016+
"type": "object",
1017+
"additionalProperties": false,
1018+
"properties": {
1019+
"ignore-comments": {
1020+
"description": "Ignore comments when counting lines.",
1021+
"type": "boolean",
1022+
"default": false
1023+
},
1024+
"max-lines": {
1025+
"description": "Max number of lines in a file.",
1026+
"type": "integer",
1027+
"default": 500
1028+
},
1029+
"min-lines": {
1030+
"description": "Min number of lines in a file.",
1031+
"type": "integer",
1032+
"default": 5
1033+
}
1034+
}
1035+
},
10151036
"forbidigo": {
10161037
"type": "object",
10171038
"additionalProperties": false,

0 commit comments

Comments
 (0)