Loading docs/code-quality/index.rst +2 −2 Original line number Diff line number Diff line Loading @@ -177,7 +177,7 @@ In this document, we try to list these all tools. - :ref:`Fluent Lint` - * - YAML linter - No - - - - :ref:`yamllint` - https://github.com/adrienverge/yamllint docs/code-quality/lint/linters/yamllint.rst 0 → 100644 +31 −0 Original line number Diff line number Diff line 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>` Loading
docs/code-quality/index.rst +2 −2 Original line number Diff line number Diff line Loading @@ -177,7 +177,7 @@ In this document, we try to list these all tools. - :ref:`Fluent Lint` - * - YAML linter - No - - - - :ref:`yamllint` - https://github.com/adrienverge/yamllint
docs/code-quality/lint/linters/yamllint.rst 0 → 100644 +31 −0 Original line number Diff line number Diff line 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>`