config: Implement for ignore-from-file option

Closes https://github.com/adrienverge/yamllint/issues/360
Co-authored-by: Adrien Vergé <@adrienverge>
This commit is contained in:
andrewnaguib
2021-03-01 16:16:50 +02:00
committed by Adrien Vergé
parent fb0c0a5247
commit 2f8ad7003a
3 changed files with 229 additions and 22 deletions

View File

@@ -190,6 +190,20 @@ Here is a more complex example:
*.ignore-trailing-spaces.yaml
ascii-art/*
You can also use the ``.gitignore`` file (or any list of files) through:
.. code-block:: yaml
ignore-from-file: .gitignore
or:
.. code-block:: yaml
ignore-from-file: [.gitignore, .yamlignore]
.. note:: However, this is mutually exclusive with the ``ignore`` key.
Setting the locale
------------------