зеркало из https://github.com/mozilla/gecko-dev.git
a5c7e81ae6
The excluded directories aren't being properly handled in the py2/py3 compat linters. In order for FileFinder to apply the exclusions properly they need to either be relative to or contained by the base. This means that currently the following will work: ./mach lint -l py2 <topsrcdir> ./mach lint -l py2 testing/mochitest But this is broken: ./mach lint -l py2 testing This change fixes the compat linters so exclude paths will be made relative to the FileFinder base before passing them in. Any exclude not contained by the base is simply discarded as it won't be relevant to that FileFinder instance anyway. MozReview-Commit-ID: LJx97TvKlSa --HG-- extra : rebase_source : b8f0cb20ec5a88a33c26ace699ed9216b070f443 |
||
---|---|---|
.. | ||
__init__.py | ||
check_compat.py | ||
compat.py | ||
flake8.py | ||
flake8_requirements.txt |