Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b6dcce0

Browse filesBrowse files
committed
[Yaml] Documented the yaml-lint binary
1 parent bfba8a6 commit b6dcce0
Copy full SHA for b6dcce0

File tree

1 file changed

+13
-0
lines changed
Filter options

1 file changed

+13
-0
lines changed

‎translation/lint.rst

Copy file name to clipboardExpand all lines: translation/lint.rst
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,16 @@ The linter results can be exported to JSON using the ``--format`` option:
3232
3333
$ php bin/console lint:yaml translations/ --format=json
3434
$ php bin/console lint:xliff translations/ --format=json
35+
36+
.. tip::
37+
38+
The Yaml component provides a stand-alone ``yaml-lint`` binary to lint YAML
39+
files without using the entire Symfony console application:
40+
41+
.. code-block:: terminal
42+
43+
$ php vendor/bin/yaml-lint translations/
44+
45+
.. versionadded:: 5.1
46+
47+
The ``yaml-lint`` binary was introduced in Symfony 5.1.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.