From 9d18d96bb5e3226f8e7207efd8dbb0b1330cf015 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Thu, 24 Oct 2024 12:00:46 +0200 Subject: [PATCH] review: add json schema --- .golangci.next.reference.yml | 8 ++++---- jsonschema/golangci.next.jsonschema.json | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.golangci.next.reference.yml b/.golangci.next.reference.yml index f3805cdf69c7..cf53d3971a41 100644 --- a/.golangci.next.reference.yml +++ b/.golangci.next.reference.yml @@ -538,12 +538,12 @@ linters-settings: # Ignore comments when counting lines. # Default false ignore-comments: true - # Max number of lines in a file setting + # Max number of lines in a file. # Default: 500 - max-lines-num: 1000 - # Min number of lines in a file setting + max-lines: 1000 + # Min number of lines in a file. # Default: 5 - min-lines-num: 1 + min-lines: 1 forbidigo: # Forbid the following identifiers (list of regexp). diff --git a/jsonschema/golangci.next.jsonschema.json b/jsonschema/golangci.next.jsonschema.json index 20253cb5baf5..6cd6584677cd 100644 --- a/jsonschema/golangci.next.jsonschema.json +++ b/jsonschema/golangci.next.jsonschema.json @@ -1004,6 +1004,27 @@ } } }, + "filen": { + "type": "object", + "additionalProperties": false, + "properties": { + "ignore-comments": { + "description": "Ignore comments when counting lines.", + "type": "boolean", + "default": false + }, + "max-lines": { + "description": "Max number of lines in a file.", + "type": "integer", + "default": 500 + }, + "min-lines": { + "description": "Min number of lines in a file.", + "type": "integer", + "default": 5 + } + } + }, "forbidigo": { "type": "object", "additionalProperties": false,