зеркало из https://github.com/mozilla/gecko-dev.git
f049bde942
This patch adds a global lint that only runs when a file or directory that matches their configuration (via `extensions` and `exclude`) has been modified or specified. Global lints never shard into chunks; they are, by definition global (i.e., across the entire source tree) and act on all inputs in a single invocation. It's up to the global lint to manage command line sizes, etc. Since batching is handled by the lint type but sharding is handled by the lint roller, there's a little abstraction leak so that the lint type can control how its invocation is sharded: the existing `batch` member is generalized from the existing `True` and `False` to add a new `"global"` value which disables sharding. Differential Revision: https://phabricator.services.mozilla.com/D35275 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
mozlint | ||
test | ||
setup.py |