1
0
Fork 0
firefox/docs/code-quality/lint/linters/yamllint.rst
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

31 lines
640 B
ReStructuredText

yamllint
========
`yamllint <https://github.com/adrienverge/yamllint>`__ is a linter for YAML files.
Run Locally
-----------
The mozlint integration of yamllint can be run using mach:
.. parsed-literal::
$ mach lint --linter yaml <file paths>
Alternatively, omit ``--linter yaml`` to run all configured linters, including
yamllint.
Configuration
-------------
To enable yamllint on a new directory, add the path to the include section in
the :searchfox:`yaml.yml <tools/lint/yaml.yml>` file.
Sources
-------
* :searchfox:`Configuration (YAML) <tools/lint/yaml.yml>`
* :searchfox:`Source <tools/lint/yamllint_/__init__.py>`