Skip to content

Commit dd22b5c

Browse files
feat(ryl): update schema to v0.17.0 (SchemaStore#5815)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 7451aa2 commit dd22b5c

2 files changed

Lines changed: 109 additions & 1 deletion

File tree

src/schemas/json/ryl.json

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,100 @@
131131
"enum": ["unix", "dos", "platform"],
132132
"type": "string"
133133
},
134+
"OutputDestination": {
135+
"additionalProperties": false,
136+
"description": "Where one format's output goes. An absent `path` means the format's default stream\n(stderr for the console formats, stdout for `junit`/`gitlab`); `\"-\"` means stdout; any\nother value is a file path.",
137+
"properties": {
138+
"path": {
139+
"type": ["string", "null"]
140+
}
141+
},
142+
"type": "object"
143+
},
144+
"OutputTable": {
145+
"additionalProperties": false,
146+
"description": "Output targets (ryl-only; TOML). Each format present is rendered to its destination,\nso several formats produce several outputs in one run (e.g. console plus a report\nfile). A CLI `--format` overrides this table wholesale. yamllint has no equivalent;\nsee `docs/output-formats.md`.",
147+
"properties": {
148+
"auto": {
149+
"anyOf": [
150+
{
151+
"$ref": "#/definitions/OutputDestination"
152+
},
153+
{
154+
"type": "null"
155+
}
156+
],
157+
"description": "Auto-detected console format (GitHub annotations in CI, otherwise colored/plain)."
158+
},
159+
"colored": {
160+
"anyOf": [
161+
{
162+
"$ref": "#/definitions/OutputDestination"
163+
},
164+
{
165+
"type": "null"
166+
}
167+
],
168+
"description": "Plain text with ANSI colors."
169+
},
170+
"github": {
171+
"anyOf": [
172+
{
173+
"$ref": "#/definitions/OutputDestination"
174+
},
175+
{
176+
"type": "null"
177+
}
178+
],
179+
"description": "GitHub Actions workflow commands."
180+
},
181+
"gitlab": {
182+
"anyOf": [
183+
{
184+
"$ref": "#/definitions/OutputDestination"
185+
},
186+
{
187+
"type": "null"
188+
}
189+
],
190+
"description": "`GitLab` Code Quality JSON report."
191+
},
192+
"junit": {
193+
"anyOf": [
194+
{
195+
"$ref": "#/definitions/OutputDestination"
196+
},
197+
{
198+
"type": "null"
199+
}
200+
],
201+
"description": "`JUnit` XML test report."
202+
},
203+
"parsable": {
204+
"anyOf": [
205+
{
206+
"$ref": "#/definitions/OutputDestination"
207+
},
208+
{
209+
"type": "null"
210+
}
211+
],
212+
"description": "One `path:line:col: [level] message (rule)` line per diagnostic."
213+
},
214+
"standard": {
215+
"anyOf": [
216+
{
217+
"$ref": "#/definitions/OutputDestination"
218+
},
219+
{
220+
"type": "null"
221+
}
222+
],
223+
"description": "Plain text grouped per file."
224+
}
225+
},
226+
"type": "object"
227+
},
134228
"PerLineIgnore": {
135229
"additionalProperties": false,
136230
"description": "A single `per-line-ignores` entry. Suppresses `rules` on source lines matching\n`regex` (the whole physical line, unanchored) within files matching `path` (a\nglob). All present fields must match (logical AND); at least one of `regex`/`path`\nis required (validated in `validate_toml_config`), so an entry can't disable a rule\nglobally.",
@@ -1847,6 +1941,7 @@
18471941
"type": "string"
18481942
}
18491943
},
1944+
"additionalProperties": false,
18501945
"description": "JSON Schema root for `ryl` TOML configuration.",
18511946
"properties": {
18521947
"files": {
@@ -1908,6 +2003,17 @@
19082003
],
19092004
"description": "Behaviour for YAML embedded in markdown (front matter and fenced blocks)."
19102005
},
2006+
"output": {
2007+
"anyOf": [
2008+
{
2009+
"$ref": "#/definitions/OutputTable"
2010+
},
2011+
{
2012+
"type": "null"
2013+
}
2014+
],
2015+
"description": "Output targets: which format goes to which destination (file/stdout/stderr)."
2016+
},
19112017
"per-file-ignores": {
19122018
"additionalProperties": {
19132019
"items": {

src/test/ryl/01-valid.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#:schema ../../schemas/json/ryl.json
2-
yaml-files = ["*.yaml", "*.yml"]
32
ignore = ["vendor/**"]
43

4+
[files]
5+
yaml = ["*.yaml", "*.yml"]
6+
57
[per-file-ignores]
68
"**/values.yaml" = ["document-start"]
79

0 commit comments

Comments
 (0)