Skip to content

[Translation] Support GitHub action format in lint:xliff #15558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions translation/lint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@ 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

When running the YAML linter inside `GitHub Actions`_, the output is automatically
When running these linters inside `GitHub Actions`_, the output is automatically
adapted to the format required by GitHub, but you can force that format too:

.. code-block:: terminal

$ php bin/console lint:yaml translations/ --format=github
$ php bin/console lint:xliff translations/ --format=github

.. versionadded:: 5.3

The ``github`` output format was introduced in Symfony 5.3.
The ``github`` output format was introduced in Symfony 5.3 for ``lint:yaml``
and in Symfony 5.4 for ``lint:xliff``.

.. tip::

Expand Down