Skip to content

Commit

Permalink
review: add json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Oct 24, 2024
1 parent abb0adb commit 9d18d96
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .golangci.next.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
21 changes: 21 additions & 0 deletions jsonschema/golangci.next.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9d18d96

Please sign in to comment.