зеркало из 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 |
||
---|---|---|
.. | ||
devtools/migrate-l10n | ||
mach | ||
mozboot | ||
mozbuild | ||
mozlint | ||
mozversioncontrol/mozversioncontrol | ||
README | ||
mach_commands.py | ||
moz.build |
README
This directory contains common Python code. The basic rule is that if Python code is cross-module (that's "module" in the Mozilla meaning - as in "module ownership") and is MPL-compatible, it should go here. What should not go here: * Vendored python modules (use third_party/python instead) * Python that is not MPL-compatible (see other-licenses/) * Python that has good reason to remain close to its "owning" (Mozilla) module (e.g. it is only being consumed from there). Historical information can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=775243 https://bugzilla.mozilla.org/show_bug.cgi?id=1346025