yamllint.rst (640B)
1 yamllint 2 ======== 3 4 `yamllint <https://github.com/adrienverge/yamllint>`__ is a linter for YAML files. 5 6 7 Run Locally 8 ----------- 9 10 The mozlint integration of yamllint can be run using mach: 11 12 .. parsed-literal:: 13 14 $ mach lint --linter yaml <file paths> 15 16 Alternatively, omit ``--linter yaml`` to run all configured linters, including 17 yamllint. 18 19 20 Configuration 21 ------------- 22 23 To enable yamllint on a new directory, add the path to the include section in 24 the :searchfox:`yaml.yml <tools/lint/yaml.yml>` file. 25 26 27 Sources 28 ------- 29 30 * :searchfox:`Configuration (YAML) <tools/lint/yaml.yml>` 31 * :searchfox:`Source <tools/lint/yamllint_/__init__.py>`