gecko-dev/python/mozlint/test
Nick Alexander f049bde942 Bug 1512487 - Part 2: Add "global" lint type. r=ahal
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
2019-08-02 20:34:09 +00:00
..
files
filter
linters Bug 1512487 - Part 2: Add "global" lint type. r=ahal 2019-08-02 20:34:09 +00:00
__init__.py
conftest.py Bug 1448417 - [mozlint] Be explicit about which linters are used for functions in test_roller.py, r=rwood 2018-09-20 20:45:04 +00:00
python.ini Bug 1436037 - [python] Create Windows python-test tasks, r=gps 2018-12-05 19:20:16 +00:00
runcli.py
test_cli.py
test_editor.py Bug 1568484 - Output issues relative paths in mozlint, r=ahal 2019-07-26 15:39:17 +00:00
test_formatters.py Bug 1569882 - Fix mozlint unit tests for relative path outputs, r=ahal 2019-07-30 23:30:15 +00:00
test_parser.py Bug 1448417 - [mozlint] Remove ability to specify globs in an 'include' directive, r=egao 2018-09-25 18:30:23 +00:00
test_pathutils.py Bug 1494069 - [mozlint] Verify the expected_exclude paths in test_filterpaths, r=rwood 2018-10-16 21:04:15 +00:00
test_result.py Bug 1569882 - Fix mozlint unit tests for relative path outputs, r=ahal 2019-07-30 23:30:15 +00:00
test_roller.py Bug 1512487 - Part 2: Add "global" lint type. r=ahal 2019-08-02 20:34:09 +00:00
test_types.py Bug 1512487 - Part 2: Add "global" lint type. r=ahal 2019-08-02 20:34:09 +00:00