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:
committed by
Adrien Vergé
parent
fb0c0a5247
commit
2f8ad7003a
@@ -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
|
||||
------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user