|
131 | 131 | "enum": ["unix", "dos", "platform"], |
132 | 132 | "type": "string" |
133 | 133 | }, |
| 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 | + }, |
134 | 228 | "PerLineIgnore": { |
135 | 229 | "additionalProperties": false, |
136 | 230 | "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 | 1941 | "type": "string" |
1848 | 1942 | } |
1849 | 1943 | }, |
| 1944 | + "additionalProperties": false, |
1850 | 1945 | "description": "JSON Schema root for `ryl` TOML configuration.", |
1851 | 1946 | "properties": { |
1852 | 1947 | "files": { |
|
1908 | 2003 | ], |
1909 | 2004 | "description": "Behaviour for YAML embedded in markdown (front matter and fenced blocks)." |
1910 | 2005 | }, |
| 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 | + }, |
1911 | 2017 | "per-file-ignores": { |
1912 | 2018 | "additionalProperties": { |
1913 | 2019 | "items": { |
|
0 commit comments