Tom Prince
105275c010
No bug: Add `mozharness.mozilla.l10n.locales` to flake8 whitelist; r=Callek
...
Differential Revision: https://phabricator.services.mozilla.com/D1654
2018-06-14 16:15:49 +00:00
Kris Maglione
4eacff920e
Bug 1464548: Part 2 - Add ESLint support for defineLazyGlobalGetters. r=standard8
...
MozReview-Commit-ID: 38hk1MquFrg
--HG--
extra : rebase_source : 8b418883093e15ed2ae7d052d7f191fc07e93636
2018-05-25 22:27:00 -07:00
Ciure Andrei
05605d68c4
Merge inbound to mozilla-central. a=merge
2018-06-08 00:50:18 +03:00
Andrew Halberstadt
d19095947f
Bug 1417920 - [python-test] Use a global pytest.ini configuration file, r=davehunt
...
This changes two config options:
pytest_classes = PyTest # only classes that start with 'PyTest' will be considered tests (previously this was Test)
xfail_strict = true # tests marked as xfail will cause pytest to return non-zero if they unexpectedly pass
MozReview-Commit-ID: DCWoDFbe6Mk
--HG--
extra : rebase_source : 9aa806e035d62d51bb338708396851c40f55ee00
2018-06-06 14:00:04 -04:00
Ed Lee
144374ea8b
Bug 1440421 part 1. Ignore activity-stream and node_modules for linting. r=ahal
...
MozReview-Commit-ID: EEua2y790cW
--HG--
extra : rebase_source : ce98dcbd82eb1f59594d6fe40e34648b7bd639de
2018-06-06 10:32:43 -07:00
Christoph Kerschbaumer
2c105d2ff5
Bug 1459204: Have about:privatebrowsing rely on RemotePageManager instead of AboutCapabilities. r=mossop,baku
2018-06-07 11:32:27 +02:00
Sylvestre Ledru
074273d40e
Bug 1464869 - Add accessible/, js/, mobile/, memory/, mozglue/, security/, testing/mozharness/mozharness/mozilla/testing/ and xpcom/ to the list of checked directory for flake8 r=ahal
...
MozReview-Commit-ID: 5MJZSdHDKo4
--HG--
extra : rebase_source : 024284c1646e9f014aa7fb45bcc7c5d896ffa456
2018-05-26 06:46:11 -07:00
Mark Banner
7f558bc1bd
Bug 1465476 - Support binary expressions for globals evaluation in ESLint. r=mossop
...
MozReview-Commit-ID: 66g1ISJ2ML1
--HG--
extra : rebase_source : bb7a61710467dbbae81c6d654d409453edf729f8
2018-05-30 15:43:23 +01:00
Mark Banner
1115b1e08b
Bug 1463673 - Member expressions should also be allowed as expected arguments to Assert.throws/rejects. r=mossop
...
MozReview-Commit-ID: Jhs3TD60bli
--HG--
extra : rebase_source : f404e938314281c3e1819fbf7b798faff0aa197d
2018-05-23 08:58:19 +01:00
Andrew Halberstadt
3a4a0ef035
Bug 1388721 - [lint] Support --fix in the flake8 linter via autopep8, r=sylvestre
...
This adds autopep8 to flake8_requirements.txt. When --fix is passed in,
autopep8 will run prior to the normal flake8 run, so only errors that couldn't
be fixed automatically will be shown.
There is one caveat, namely autopep8 will only use the root .flake8 file
(there's no support for passing in subconfigs).
MozReview-Commit-ID: FJ0doey2KVb
--HG--
extra : rebase_source : 8cff7352ce0d2eb9e5d774085005043780c2e2a2
2018-05-25 17:02:43 -04:00
Mark Banner
1933dd3a48
Bug 1464100 - Update eslint-plugin-no-unsanitized to v3.0.2. r=ahal
...
MozReview-Commit-ID: 3u1FeN5wVwf
--HG--
extra : rebase_source : ca88ffff457fa01148189bb317bd09af06695df5
2018-05-24 16:54:54 +01:00
Felipe Gomes
683f921f8c
Bug 1409054 - Remove code from the old about:home. r=Mardak
...
MozReview-Commit-ID: JrgIFr2kAvI
--HG--
extra : rebase_source : 2636bfb0aa6b3fd81a3380c844776c3e0c048c8e
2018-05-22 00:45:44 -03:00
Sylvestre Ledru
8f2319cae3
bug 1463425 - Add more directories to the flake8 list r=ahal
...
MozReview-Commit-ID: JMZQonceq8W
--HG--
extra : rebase_source : 1d8d0218f128dede197fa99e5cba1f0101a80384
2018-05-22 06:26:22 -07:00
Brian Grinstead
5fa9aadc74
Bug 1462798 - Create a base custom element class that shares the parseXULToFragment helper;r=Paolo
...
MozReview-Commit-ID: IG84xKxO9Wc
--HG--
extra : rebase_source : bc46d1f4dcfee66523a2ede8ec32ef9014cf170c
2018-05-19 13:56:06 -07:00
Sylvestre Ledru
b629f23fc9
Bug 1462405
- Update codespell to 1.13 r=ahal
...
MozReview-Commit-ID: 7vRJAq0mOHm
--HG--
extra : rebase_source : 9ba6e5ae9e46c63cb60b65352d1b2f94b31fa137
2018-05-17 18:59:10 +02:00
Noemi Erli
5c958b4444
Backed out changeset 89ead7c6e907 (bug 1462405
) for Linting failure on a CLOSED TREE
2018-05-19 11:11:25 +03:00
Sylvestre Ledru
97d3d22a5e
Bug 1462405
- Update codespell to 1.13 r=ahal
...
MozReview-Commit-ID: 7vRJAq0mOHm
--HG--
extra : rebase_source : 6a7e820ff0399b45b82702f08ec8cbfb38d132c4
2018-05-17 18:59:10 +02:00
Felipe Gomes
ad24f8ae59
Bug 1462400 - Tell eslint about XPCOMUtils.defineLazyProxy. r=standard8
...
Also bump eslint-plugin-mozilla version to 0.13.0
MozReview-Commit-ID: ELWC6RYNPjT
--HG--
extra : rebase_source : aecc1a032e761812f78f9e57a2534d0e694d0b9c
2018-05-18 13:24:54 -03:00
Mark Banner
f692609ef4
Bug 1461997 - Add an ESLint rule to ensure that Assert.rejects is preceeded by await. r=mossop
...
MozReview-Commit-ID: kVrHRIi9l6
--HG--
extra : rebase_source : affa22c03c3d0fafc11d6fb62fed272e289802dd
2018-05-16 21:04:13 +01:00
Mark Banner
0237d1df76
Bug 1461997 - Create a rule to prevent usages of Assert.throws/rejects without an 'expected' argument. r=mossop
...
MozReview-Commit-ID: 979uJQUjybl
--HG--
extra : rebase_source : 1e0cb11ac28e35391c92a06bbd5894f7fc507baa
2018-04-09 18:54:13 +01:00
Sylvestre Ledru
1166e955d4
Bug 1449035 - Codespell: move to quiet-level=7 to also ignore the binary r=ahal
...
MozReview-Commit-ID: 9ldfPPRqiSu
--HG--
extra : rebase_source : 3830f48f954c1ef8b5d858644177c8beaedb0e50
2018-05-12 12:03:11 +02:00
Sylvestre Ledru
f4460e12bd
Bug 1460402 - Update the codespell support to use pip instead of the package r=ahal
...
MozReview-Commit-ID: J4wS7s9sWFe
--HG--
extra : rebase_source : 040904aa56cb88292829c110cd6040616a99f04b
2018-05-09 21:56:43 +02:00
Sylvestre Ledru
91cdb3d557
Bug 1460402 - Update the flake8 support to use the pip class r=ahal
...
MozReview-Commit-ID: 9BWa0cnWJdS
--HG--
extra : rebase_source : a4574227e2f165fa9b2529fb0e36f24f26ee5cfd
2018-05-09 21:55:21 +02:00
Dorel Luca
a5bc0b3f70
Backed out 4 changesets (bug 1460402) for lint failure on intl/locales/en-US/hyphenation/hyph_en_US.dic. CLOSED TREE
...
Backed out changeset c2e8fbd72ca6 (bug 1460402)
Backed out changeset 3676e913dbff (bug 1460402)
Backed out changeset bb12ffd4b96e (bug 1460402)
Backed out changeset 3e50885329c4 (bug 1460402)
2018-05-11 00:47:34 +03:00
Sylvestre Ledru
4631824f9c
Bug 1460402 - Update the codespell support to use pip instead of the package r=ahal
...
MozReview-Commit-ID: J4wS7s9sWFe
--HG--
extra : rebase_source : 4666a3e5bab6ee5ca95fcc31da4ef625e46e2d59
2018-05-09 21:56:43 +02:00
Sylvestre Ledru
341d0a75ef
Bug 1460402 - Update the flake8 support to use the pip class r=ahal
...
MozReview-Commit-ID: 9BWa0cnWJdS
--HG--
extra : rebase_source : 6de8669427b1724aadc39c0d10dd30e0e26abdc8
2018-05-09 21:55:21 +02:00
Dorel Luca
74bbb3c1eb
Backed out 4 changesets (bug 1460402) for breaking taskcluster images. CLOSED TREE
...
Backed out changeset 5b40f3f18f42 (bug 1460402)
Backed out changeset 17526c61b995 (bug 1460402)
Backed out changeset e1caff997e5a (bug 1460402)
Backed out changeset 06ceda084d69 (bug 1460402)
2018-05-10 23:54:38 +03:00
Sylvestre Ledru
b86503f980
Bug 1460402 - Update the codespell support to use pip instead of the package r=ahal
...
MozReview-Commit-ID: J4wS7s9sWFe
--HG--
extra : rebase_source : 4666a3e5bab6ee5ca95fcc31da4ef625e46e2d59
2018-05-09 21:56:43 +02:00
Sylvestre Ledru
814ff726f3
Bug 1460402 - Update the flake8 support to use the pip class r=ahal
...
MozReview-Commit-ID: 9BWa0cnWJdS
--HG--
extra : rebase_source : 6de8669427b1724aadc39c0d10dd30e0e26abdc8
2018-05-09 21:55:21 +02:00
Kris Maglione
6ec4b995da
Bug 1460092: Follow-up: Fix eslint test failure caused by added comment. r=bustage CLOSED TREE
...
MozReview-Commit-ID: 18vBAO8MLh0
--HG--
extra : amend_source : c9443b79b1dc55b73424800fe8611d3e4b281392
2018-05-09 11:46:39 -07:00
Kris Maglione
01c298aca6
Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
...
Also fixes existing code which fails the rule.
MozReview-Commit-ID: CkLFgsspGMU
--HG--
extra : rebase_source : 86a43837659aa2ad83a87eab53b7aa8d39ccf55b
2018-05-08 18:36:22 -07:00
Mark Banner
55b2589eab
Bug 1456085 - Increase ESLint's minimum node & npm requirements to 8.9.1 & 5.5.1 respectively. r=ahal
...
Also use package-lock.json rather than npm-shrinkwrap.json as we no longer need to support the latter.
MozReview-Commit-ID: 4yaFcElvhF7
--HG--
rename : npm-shrinkwrap.json => package-lock.json
extra : rebase_source : ae6fcadd8b4a5213fb94cd6426909c2efebfb6a1
2018-05-08 09:49:25 +01:00
Mark Banner
d19d88da30
Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher
...
MozReview-Commit-ID: BoGnB1aQxm8
--HG--
extra : rebase_source : 3014c44fb75c24616da5ca35b4e0addaf9982d9e
2018-04-30 11:03:44 +01:00
Dave Hunt
1b63703ded
Bug 1437593 - Exclude third_party directory from linting; r=ted
...
MozReview-Commit-ID: DrVaFf9e6tf
--HG--
extra : rebase_source : ceec30f6a8a737013ad9c0d493419be959cd9306
2018-04-24 20:23:35 +01:00
Dorel Luca
70e79e52cd
Backed out 11 changesets (bug 1437593) for Doc linting failure. CLOSED TREE
...
Backed out changeset 0f3dbbd73ed4 (bug 1437593)
Backed out changeset 64c84cf90e8b (bug 1437593)
Backed out changeset 36c66615886f (bug 1437593)
Backed out changeset dfafbe7770ad (bug 1437593)
Backed out changeset 900f32450a74 (bug 1437593)
Backed out changeset d6fe456bb39c (bug 1437593)
Backed out changeset 4842e4b68d82 (bug 1437593)
Backed out changeset e024b3d775fd (bug 1437593)
Backed out changeset ce9e3951357a (bug 1437593)
Backed out changeset afaeac146ff8 (bug 1437593)
Backed out changeset 88954bcf6ca2 (bug 1437593)
2018-04-28 12:02:02 +03:00
Dave Hunt
4e0411f8cd
Bug 1437593 - Exclude third_party directory from linting; r=ted
...
MozReview-Commit-ID: DrVaFf9e6tf
--HG--
extra : rebase_source : 25881823ed48f09f5278404510dc435f1d5aaad2
2018-04-24 20:23:35 +01:00
Mark Banner
88e4fd5825
Bug 1456076 - Update ESLint to 4.19.1 & eslint-plugin-html to 4.0.3. r=mossop
...
MozReview-Commit-ID: Gs6T8AsLPPo
--HG--
extra : rebase_source : bf189ef047294ea405d8e7628eae94daa6d93e89
2018-04-23 11:33:31 +01:00
Gurzau Raul
677f146915
Backed out 11 changesets (bug 1437593) for SpiderMonkey failures on a CLOSED TREE
...
Backed out changeset e4b2357330b4 (bug 1437593)
Backed out changeset 8cb34c11ad45 (bug 1437593)
Backed out changeset ab27411c53c2 (bug 1437593)
Backed out changeset c90a0961f52a (bug 1437593)
Backed out changeset 60114a93b6b1 (bug 1437593)
Backed out changeset d12eec17c51c (bug 1437593)
Backed out changeset 2f83246cb0b1 (bug 1437593)
Backed out changeset 19b7273e375c (bug 1437593)
Backed out changeset cf026c071b73 (bug 1437593)
Backed out changeset c7fa833eff1d (bug 1437593)
Backed out changeset 828caab5032d (bug 1437593)
2018-04-27 02:20:39 +03:00
Dave Hunt
d98ab6fd6b
Bug 1437593 - Exclude third_party directory from linting; r=ted
...
MozReview-Commit-ID: DrVaFf9e6tf
--HG--
extra : rebase_source : cb00caebb3af6908cd67af323a5ec895ca3d12e5
2018-04-24 20:23:35 +01:00
Kris Maglione
35409daeed
Bug 1456686: Part 2 - Update ESLint plugin to treat explicit imports as real variable definitions. r=standard8
...
This has the effect of exposing explicit imports (e.g., defineModuleGetter),
but not implicit imports (e.g., Cu.import), to rules like no-unused-vars and
no-shadow.
MozReview-Commit-ID: C8oXoSKMU1s
--HG--
extra : rebase_source : 21e87b48514c2075d09eca7e20a1671b206d871f
extra : histedit_source : 5080aef443f0a21f3a1e3e2bb398aadcc5a05402%2Cc472717700446079b1f7ac552a4c3339d207ad61
2018-04-24 20:17:12 -07:00
Edouard Oger
783ac499bc
Bug 1442133 - FxA messages client implementation. r=markh,tcsc
...
MozReview-Commit-ID: EWYlZLdyUA0
--HG--
extra : rebase_source : ac540a5d1c26067c95314d07a32db8994f3dcee6
2018-03-07 13:38:12 -05:00
Sylvestre Ledru
c2dfd17d46
Bug 1448934 - Add wasn to the ignore list until the upstream issue is fixed r=flod
...
MozReview-Commit-ID: IHi0Bag9FtH
--HG--
extra : rebase_source : 521d57e25e6144129b8e12ea99be860fcc3dc4e9
2018-04-24 10:49:29 +02:00
Sylvestre Ledru
6f62c2033f
Bug 1448934 - Add the trailing "/" for consistency r=ahal
...
MozReview-Commit-ID: Ir54uVUFfbD
--HG--
extra : rebase_source : 1a8069c2e9e02dd2aee88407d5dd54f09fd26009
2018-03-26 19:10:45 +02:00
Sylvestre Ledru
3e355d9900
Bug 1448934 - Add */locales/en-US/ to the checklist r=flod
...
MozReview-Commit-ID: 4jO8nptectq
--HG--
extra : rebase_source : 626205c5ff7eeb830214cf72104ad39438dba337
2018-03-26 19:09:50 +02:00
Jeff Gilbert
e969340c6c
Bug 1450839 - Exclude mochitest-errata.ini from test-disable.yml. CLOSED TREE
...
This file is not part of the build. (it's used to generate
generated-mochitest.ini)
What's tripping up this lint is this line:
# [gl:0D6DE000] mozilla::gl::GLContext::raw_fDrawArrays: Generated unexpected GL_INVALID_OPERATION error. (0x0502)
This line is picked up as a false-positive, since the too-naive regex
(effectively /#.*\[/) interprets this as a skipped test.
MozReview-Commit-ID: 2bMIkCH8WK9
2018-04-20 16:59:16 -07:00
Dorel Luca
15813c8ca0
Merge mozilla-central to mozilla-inbound
2018-04-21 02:06:35 +03:00
Kris Maglione
903e86e865
Bug 1455458: De-XPIDLify the blocklist service. r=gijs
...
Going through XPConnect for JS-to-JS access in the blocklist service adds no
benefit, but does add a lot of overhead and maintenance burden.
MozReview-Commit-ID: Lf1mDK0b0B0
--HG--
extra : rebase_source : 410ed3fcf999d7c7775ef4926c89f67d9e342da8
2018-04-19 16:01:24 -07:00
Sylvestre Ledru
fd4c215a63
Bug 1455451 - Codespell: enable the autofix (with --fix) r=ahal
...
MozReview-Commit-ID: FkWHbqvkkZV
--HG--
extra : rebase_source : 036d749eff34137d1f95183cb0b6abda139174b4
2018-04-19 23:41:57 +02:00
Sylvestre Ledru
e2ad665009
Bug 1455086 - codespell: add an exclude list r=ahal
...
MozReview-Commit-ID: JcRGpjXzxEi
--HG--
extra : rebase_source : 25dda950ddbe3a077e0c74b10f472b97a56565a7
2018-04-18 21:17:40 +02:00
Rob Wood
4af496d7f2
Bug 1454466 - Move raptor in-tree; r=ahal
...
MozReview-Commit-ID: AkqbROfvmbu
--HG--
extra : rebase_source : bf30030a333852d6d81c4278e91b1ac9fef237fe
2018-04-16 17:15:38 -04:00