You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yamllint/yamllint
sedrubal c7d04ad7e7
Add support for exclusion patterns
Add argument -e/--e PATTERN to exclude files or directories when walking
through a file system tree and searching for yaml files.

E.g.

```
yamllint -e s .
```

in this tree:

```
.
├── a.yaml
├── empty-dir
├── empty.yml
├── non-ascii
│   └── utf-8
├── no-yaml.json
├── s
│   └── s
│       └── s
│           └── s
│               └── s
│                   └── s
│                       └── s
│                           └── s
│                               └── s
│                                   └── s
│                                       └── s
│                                           └── s
│                                               └── s
│                                                   └── s
│                                                       └── s
│                                                           └── file.yaml
├── sub
│   └── ok.yaml
└── warn.yaml
```

ignores the directory `./s/`.

And `yamllint -e warn.yaml -e non-ascii/utf-8 .` ignores both,
`warn.yaml` and `non-ascii/utf-8`.
8 years ago
..
conf Rules: Add min-spaces-inside-empty and max-spaces-inside-empty 8 years ago
rules Merge pull request #38 from jhriggs/feature/empty_braces_brackets 8 years ago
__init__.py yamllint version 1.7.0 8 years ago
__main__.py Add __main__ 8 years ago
cli.py Add support for exclusion patterns 8 years ago
config.py Tests: cli: Detect and handle the `-d ''` case 9 years ago
linter.py Minor cosmetic typo 8 years ago
parser.py linter: Fix UnicodeError when parsing comments 9 years ago