From 56573038bc13f6f0b91dd84a1084151a1e926192 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Wed, 19 Sep 2018 16:55:16 -0400 Subject: [PATCH 1/3] Added support for multiple files or directories --- translation/lint.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/translation/lint.rst b/translation/lint.rst index bbd1f2e2428..f24fa8f4058 100644 --- a/translation/lint.rst +++ b/translation/lint.rst @@ -16,11 +16,15 @@ translation file using the ``lint:yaml`` and ``lint:xliff`` commands: # lint a single file $ ./bin/console lint:yaml translations/messages.en.yaml - $ ./bin/console lint:xliff translations/messages.en.xlf + $ ./bin/console lint:xliff translations/messages.en.xlf # lint a whole directory $ ./bin/console lint:yaml translations $ ./bin/console lint:xliff translations + + # lint a multiple files or directories + $ ./bin/console lint:yaml translations path/to/trans + $ ./bin/console lint:xliff translations/messages.en.xlf translations/messages.es.xlf The linter results can be exported to JSON using the ``--format`` option: From e68d2420b178d1916131bd47c3eac67d5a1044f3 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Thu, 20 Sep 2018 06:51:26 -0400 Subject: [PATCH 2/3] typo --- translation/lint.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translation/lint.rst b/translation/lint.rst index f24fa8f4058..6dea9b1b33b 100644 --- a/translation/lint.rst +++ b/translation/lint.rst @@ -16,13 +16,13 @@ translation file using the ``lint:yaml`` and ``lint:xliff`` commands: # lint a single file $ ./bin/console lint:yaml translations/messages.en.yaml - $ ./bin/console lint:xliff translations/messages.en.xlf + $ ./bin/console lint:xliff translations/messages.en.xlf # lint a whole directory $ ./bin/console lint:yaml translations $ ./bin/console lint:xliff translations - # lint a multiple files or directories + # lint multiple files or directories $ ./bin/console lint:yaml translations path/to/trans $ ./bin/console lint:xliff translations/messages.en.xlf translations/messages.es.xlf From e4494bda5efe08555b55936595b91ef3c57e6a5c Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 21 Sep 2018 15:06:24 +0200 Subject: [PATCH 3/3] Added the versionadded directive --- translation/lint.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/translation/lint.rst b/translation/lint.rst index 6dea9b1b33b..ade3745f36b 100644 --- a/translation/lint.rst +++ b/translation/lint.rst @@ -26,6 +26,9 @@ translation file using the ``lint:yaml`` and ``lint:xliff`` commands: $ ./bin/console lint:yaml translations path/to/trans $ ./bin/console lint:xliff translations/messages.en.xlf translations/messages.es.xlf +.. versionadded:: 4.2 + The feature to lint multiple files and directories was introduced in Symfony 4.2. + The linter results can be exported to JSON using the ``--format`` option: .. code-block:: terminal