gecko-dev/python/mozlint/test
Andrew Halberstadt dae5d6aae4 Bug 1399522 - [mozlint] Properly handle directories in LineLinters, r=bc
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
2017-09-13 12:03:18 -04:00
..
files Bug 1399522 - [mozlint] Properly handle directories in LineLinters, r=bc 2017-09-13 12:03:18 -04:00
linters Bug 1399522 - [mozlint] Properly handle directories in LineLinters, r=bc 2017-09-13 12:03:18 -04:00
__init__.py
conftest.py Bug 1397423 - Enable py2 linter on python/mozlint. r=ahal 2017-09-06 22:52:46 -04:00
python.ini Bug 1379151 - Add --fix and --edit to mozlint, r=standard8 2017-08-10 09:21:17 -04:00
test_cli.py Bug 1397423 - Enable py2 linter on python/mozlint. r=ahal 2017-09-06 22:52:46 -04:00
test_formatters.py Bug 1397423 - Enable py2 linter on python/mozlint. r=ahal 2017-09-06 22:52:46 -04:00
test_parser.py Bug 1397423 - Enable py2 linter on python/mozlint. r=ahal 2017-09-06 22:52:46 -04:00
test_roller.py Bug 1397423 - Enable py2 linter on python/mozlint. r=ahal 2017-09-06 22:52:46 -04:00
test_types.py Bug 1399522 - [mozlint] Properly handle directories in LineLinters, r=bc 2017-09-13 12:03:18 -04:00
test_vcs.py Bug 1397423 - Enable py2 linter on python/mozlint. r=ahal 2017-09-06 22:52:46 -04:00