From 1513f223d2d73e16b86078ed53f84a7aa87abb51 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Wed, 19 Sep 2018 16:39:16 -0400 Subject: [PATCH 1/4] Added support for multiple files or directories --- components/yaml.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/yaml.rst b/components/yaml.rst index ec47ea6a9ee..933552155ab 100644 --- a/components/yaml.rst +++ b/components/yaml.rst @@ -410,9 +410,15 @@ Then, execute the script for validating contents: # validates a single file $ php lint.php path/to/file.yaml + + # validates a multiple files + $ php lint.php path/to/file1.yaml path/to/file2.yaml # or all the files in a directory $ php lint.php path/to/directory + + # or all the files in multiple directories + $ php lint.php path/to/directory1 path/to/directory2 # or contents passed to STDIN $ cat path/to/file.yaml | php lint.php From a5546a685f2a2767b4cf3a134d6d64fb12b1a9ff Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Wed, 19 Sep 2018 16:41:23 -0400 Subject: [PATCH 2/4] adding missing "or" --- components/yaml.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/yaml.rst b/components/yaml.rst index 933552155ab..2e402f53804 100644 --- a/components/yaml.rst +++ b/components/yaml.rst @@ -411,7 +411,7 @@ Then, execute the script for validating contents: # validates a single file $ php lint.php path/to/file.yaml - # validates a multiple files + # or validates a multiple files $ php lint.php path/to/file1.yaml path/to/file2.yaml # or all the files in a directory From 6cf8bef20df22c23c2ec3a96b870b3d2e175bfe2 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Thu, 20 Sep 2018 06:52:54 -0400 Subject: [PATCH 3/4] typo --- components/yaml.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/yaml.rst b/components/yaml.rst index 2e402f53804..f04d6c1f7ff 100644 --- a/components/yaml.rst +++ b/components/yaml.rst @@ -411,7 +411,7 @@ Then, execute the script for validating contents: # validates a single file $ php lint.php path/to/file.yaml - # or validates a multiple files + # or validates multiple files $ php lint.php path/to/file1.yaml path/to/file2.yaml # or all the files in a directory From 23f64654b70013032e7c4d8d816bec6ec68f8d2c Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 21 Sep 2018 15:20:28 +0200 Subject: [PATCH 4/4] Added the versionadded directive --- components/yaml.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/yaml.rst b/components/yaml.rst index f04d6c1f7ff..7e22b4cdafd 100644 --- a/components/yaml.rst +++ b/components/yaml.rst @@ -423,6 +423,9 @@ Then, execute the script for validating contents: # or contents passed to STDIN $ cat path/to/file.yaml | php lint.php +.. versionadded:: 4.2 + The feature to lint multiple files and directories was introduced in Symfony 4.2. + The result is written to STDOUT and uses a plain text format by default. Add the ``--format`` option to get the output in JSON format: