зеркало из https://github.com/mozilla/gecko-dev.git
dae5d6aae4
Currently line linters (linters that open a file and process it line by line, by applying a regex for example), don't handle directories. If a directory is passed in, it will try to 'open' it, which fails. Directories can get hit if the linter has a directory in its include directive or if the user passes in --no-filter. This patch modifies LineLinters so that if a directory is detected, we search for all relevant files under that directory. If 'extensions' is used, we'll look for only files with appropriate extensions. Otherwise we assume the linter wants every file. MozReview-Commit-ID: D9lzTNuQTob --HG-- extra : rebase_source : 0b952c06eae28b67b687813ff7e75b231b2dd4d3 |
||
---|---|---|
.. | ||
files | ||
linters | ||
__init__.py | ||
conftest.py | ||
python.ini | ||
test_cli.py | ||
test_formatters.py | ||
test_parser.py | ||
test_roller.py | ||
test_types.py | ||
test_vcs.py |