From b6dcce00f0d2664508a5a3bc3476e08359d8bcb1 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 16 Jan 2020 17:56:31 +0100 Subject: [PATCH] [Yaml] Documented the yaml-lint binary --- translation/lint.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/translation/lint.rst b/translation/lint.rst index 29cec3c5008..bcdd42eae9b 100644 --- a/translation/lint.rst +++ b/translation/lint.rst @@ -32,3 +32,16 @@ The linter results can be exported to JSON using the ``--format`` option: $ php bin/console lint:yaml translations/ --format=json $ php bin/console lint:xliff translations/ --format=json + +.. tip:: + + The Yaml component provides a stand-alone ``yaml-lint`` binary to lint YAML + files without using the entire Symfony console application: + + .. code-block:: terminal + + $ php vendor/bin/yaml-lint translations/ + + .. versionadded:: 5.1 + + The ``yaml-lint`` binary was introduced in Symfony 5.1.