Skip to content

Commit 511613e

Browse files
committed
minor #14780 [Yaml] Adds chapters for YAML lint --exclude option (christingruber)
This PR was merged into the 5.4 branch. Discussion ---------- [Yaml] Adds chapters for YAML lint --exclude option Adds the new chapters for the yaml lint ``--exclude`` and ``--config`` options. See the feature pull: symfony/symfony#39641 Commits ------- 9b0fe51 Add the docs for the new --exclude option
2 parents 109fe12 + 9b0fe51 commit 511613e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/yaml.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,12 @@ Then, execute the script for validating contents:
433433
# or contents passed to STDIN
434434
$ cat path/to/file.yaml | php lint.php
435435
436+
Use the `--exclude` option to exclude one or more specific files from multiple file list:
437+
438+
.. code-block:: terminal
439+
440+
$ php lint.php path/to/directory --exclude=path/to/directory/foo.yaml --exclude=path/to/directory/bar.yaml
441+
436442
The result is written to STDOUT and uses a plain text format by default.
437443
Add the ``--format`` option to get the output in JSON format:
438444

0 commit comments

Comments
 (0)