gecko-dev/tools/lint
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
..
cpp Bug 1444167 Add a MinGW Header Capitalization lint job r=ahal 2018-03-08 13:41:00 -06:00
docs Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
eslint Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
python Bug 1494069 - [mozlint] Append global 'excludes' to each linter at parse time, r=rwood 2018-10-16 21:04:14 +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 1436037 - [ci] Run mozbase and mozlint python-test tasks on OSX, r=jmaher 2018-12-21 13:43:12 +00:00
tox
wpt Bug 1503599 - [mozlint] Default lineno to 0 in result.Issue if unset, r=jgraham 2018-11-07 15:21:31 +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 1519968 - [mach] Minor improvements to autocomplete docs, r=jmaher 2019-01-14 19:43:53 +00:00
cpp-virtual-final.yml Bug 1513950 - Run cpp-virtual-final lint on .cc files. r=ahal 2018-12-31 21:27:22 +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 1506611 - Fixed linter errors in testing/tps. r=ahal 2019-01-15 15:58:52 +00:00
hooks.py Bug 1373368 - [lint] Ignore SIGINT in lint hooks, r=standard8 2018-03-29 16:39:29 -04:00
hooks_clang_format.py Bug 1514770 - Fix the clang-format hook for git r=ahal 2018-12-17 19:12:06 +00:00
mach_commands.py Bug 1375861 - [mozlint] Globally exclude paths listed in tools/rewriting/ThirdPartyPaths.txt from our linters, r=sylvestre 2018-10-18 15:27:59 +00:00
mingw-capitalization.yml Bug 1375861 - [mozlint] Globally exclude paths listed in tools/rewriting/ThirdPartyPaths.txt from our linters, r=sylvestre 2018-10-18 15:27:59 +00:00
py2.yml Bug 1375861 - [mozlint] Globally exclude paths listed in tools/rewriting/ThirdPartyPaths.txt from our linters, r=sylvestre 2018-10-18 15:27:59 +00:00
py3.yml Bug 1375861 - [mozlint] Globally exclude paths listed in tools/rewriting/ThirdPartyPaths.txt from our linters, r=sylvestre 2018-10-18 15:27:59 +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 1375861 - [mozlint] Globally exclude paths listed in tools/rewriting/ThirdPartyPaths.txt from our linters, r=sylvestre 2018-10-18 15:27:59 +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
yaml.yml Bug 1482395: [mozrelease] Generate whats new blob and populate it during release; r=mtabara 2018-11-26 17:51:23 +00:00