gecko-dev/tools/lint
Andrew Halberstadt 1c02345779 Bug 1494069 - [lint] Explicitly list out objdirs rather than depend on 'obj*' in the global exclude, r=rwood
When using globs in exclude directorives, FileFinder will return every *file*
that gets matched. This is can be thousands of files in the case of an objdir.
While we now collapse these files down to highest possible directories, this
collapse operation can still take a noticeable amount of time (0.6s). This
simply scans topsrcdir for files that start with 'obj' to avoid the glob.

This also moves the '_activate_virtualenv' call to the top of the function
because in CI, this will cause an objdir to be created (to store the
virtualenv). If this happens *after* calculating the global excludes, we won't
catch it since it doesn't exist yet. This will result in the objdir's
virtualenv being linted and erroneous failures.

Depends on D7739

Differential Revision: https://phabricator.services.mozilla.com/D7740

--HG--
extra : moz-landing-system : lando
2018-10-05 19:48:53 +00:00
..
cpp Bug 1444167 Add a MinGW Header Capitalization lint job r=ahal 2018-03-08 13:41:00 -06:00
docs Bug 1448417 - [mozlint] Remove ability to specify globs in an 'include' directive, r=egao 2018-09-25 18:30:23 +00:00
eslint Bug 1426245 - Replace OnItemAdded with bookmark-item-added r=mak 2018-10-09 14:47:27 +00:00
python Bug 1460856 - [mozlint] Stop using warnings in all current linters r=Standard8 2018-08-28 19:24:55 +00:00
shell Bug 1460856 - [mozlint] Stop using warnings in all current linters r=Standard8 2018-08-28 19:24:55 +00:00
spell Bug 1496903 - Update codespell to 1.14 r=ahal 2018-10-09 14:31:05 +00:00
test Bug 1473308 - [flake8] Pass custom extension list into the flake8 binary r=marco 2018-07-06 12:39:39 +00:00
tox
wpt Bug 1428585 - Fixup flake8 error, r=me ON A CLOSED TREE 2018-01-09 15:47:06 +00:00
yamllint_ Bug 1460856 - [mozlint] Stop using warnings in all current linters r=Standard8 2018-08-28 19:24:55 +00:00
codespell.yml Bug 1462415 - Delete onboarding system add-on r=Standard8,k88hudson 2018-10-10 14:48:56 +00:00
cpp-virtual-final.yml Bug 1460856 - [mozlint] Stop using warnings in all current linters r=Standard8 2018-08-28 19:24:55 +00:00
eslint.yml Bug 1445764 - Remove some Places special casing in eslint configurations;r=standard8 2018-07-03 14:26:54 -07:00
flake8.yml Bug 1494091: [mozharness] Lint mozharness package; r=Callek 2018-10-02 18:32:03 +00:00
hooks.py Bug 1373368 - [lint] Ignore SIGINT in lint hooks, r=standard8 2018-03-29 16:39:29 -04:00
mach_commands.py Bug 1494069 - [lint] Explicitly list out objdirs rather than depend on 'obj*' in the global exclude, r=rwood 2018-10-05 19:48:53 +00:00
mingw-capitalization.yml Bug 1460856 - [mozlint] Stop using warnings in all current linters r=Standard8 2018-08-28 19:24:55 +00:00
py2.yml Bug 1472177 - Run mozversioncontrol tests under python 3 r=gps 2018-07-24 21:21:46 +00:00
py3.yml Bug 1489340 - Remove xpcom/typelib r=froydnj 2018-09-07 13:55:38 +00:00
shellcheck.yml Bug 1373368 - [lint] Add support-files to all of the lint configs, r=standard8 2018-02-16 17:46:46 -05:00
test-disable.yml Bug 1448417 - [mozlint] Remove ability to specify globs in an 'include' directive, r=egao 2018-09-25 18:30:23 +00:00
wpt.yml Bug 1373368 - [lint] Add support-files to all of the lint configs, r=standard8 2018-02-16 17:46:46 -05:00
wpt_manifest.yml Bug 1373368 - [lint] Add support-files to all of the lint configs, r=standard8 2018-02-16 17:46:46 -05:00
yaml.yml Bug 1373368 - [lint] Add support-files to all of the lint configs, r=standard8 2018-02-16 17:46:46 -05:00