feat(config): Add support to ignore paths on per-rule basis

Example of configuration to use this feature:

    # For all rules
    ignore: |
      *.dont-lint-me.yaml
      /bin/
      !/bin/*.lint-me-anyway.yaml

    rules:
      key-duplicates:
        ignore: |
          generated
          *.template.yaml
      trailing-spaces:
        ignore: |
          *.ignore-trailing-spaces.yaml
          /ascii-art/*

Closes #43.
This commit is contained in:
Adrien Vergé
2017-06-06 21:52:59 +02:00
parent 342d7b49dd
commit df26cc0438
7 changed files with 222 additions and 17 deletions

View File

@@ -46,7 +46,7 @@ setup(
entry_points={'console_scripts': ['yamllint=yamllint.cli:run']},
package_data={'yamllint': ['conf/*.yaml'],
'tests': ['yaml-1.2-spec-examples/*']},
install_requires=['pyyaml'],
install_requires=['pathspec', 'pyyaml'],
tests_require=['nose'],
test_suite='nose.collector',
)