add note for json-output

pull/245/head
Roman v. Gemmeren 5 years ago
parent d167f4556e
commit 7bbc2e60e4
No known key found for this signature in database
GPG Key ID: 630038BE768F4344

@ -101,6 +101,25 @@ machine (for instance for :doc:`syntax highlighting in text editors
file.yml:57:1: [error] trailing spaces (trailing-spaces)
file.yml:60:3: [error] wrong indentation: expected 4 but found 2 (indentation)
Add the ``-f json`` arguments if you need an output formatted as json.
The output will then look like:
::
[
{
"path": "file.yml",
"line": 6,
"char": 2,
"description": "[warning] missing starting space in comment (comments)",
"code": "yamllint",
"name": "yamllint",
"severity": "warning"
}
]
If you have a custom linting configuration file (see :doc:`how to configure
yamllint <configuration>`), it can be passed to yamllint using the ``-c``
option:

Loading…
Cancel
Save