Commit Graph

637 Commits

Author SHA1 Message Date
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
Kris Maglione
5e3d4e93b5 Bug 1420908: Follow-up: Remove missing directory from codespell.yml. r=bustage DONTBUILD CLOSED TREE
MozReview-Commit-ID: 8Sx2Hpbf5o2

--HG--
extra : amend_source : ca57f2d84bf6185ebded5fa500b58e8d6c514093
2018-04-14 21:52:43 -07:00
Kris Maglione
fa5af6622b Bug 1453123: Have CertUtils export a CertUtils object. r=rhelmer
MozReview-Commit-ID: 1XInmbNQ2wo

--HG--
extra : rebase_source : 11784a228a91a1b48eab9319e9c853802e060fc2
extra : amend_source : 7e067210dda9db2228f391e4d53de4d5d5f9a3f9
2018-04-10 13:23:35 -07:00
Dave Hunt
4d1d1447df Bug 1447057 - Document policies for using third-party Python packages; r=gps
MozReview-Commit-ID: 8eJt84pEKlv

--HG--
extra : rebase_source : 88ff3693be50954f28bb9e5a46f412e8dd2432ff
2018-03-19 17:53:33 +00:00
Andrew Halberstadt
4e612ae675 Bug 1373368 - [lint] Ignore SIGINT in lint hooks, r=standard8
This defers SIGINT handling to the underlying mozlint subprocess. Mozlint *should*
return quickly and gracefully. This way the hook process itself will not abort, just
the linting. After hitting Ctrl-C, the vcs operation should continue as if the lint
were successful.

If mozlint had already found some errors before hitting Ctrl-C, those should get
printed and could potentially abort the hook.

MozReview-Commit-ID: BKXq1dXuMlB

--HG--
extra : rebase_source : a5f2a80f13ead6b31fc58de815fcf5b749e35d73
2018-03-29 16:39:29 -04:00
Andrew Halberstadt
0515e13234 Bug 1373368 - [lint] Add support-files to all of the lint configs, r=standard8
MozReview-Commit-ID: ChOVmTFTmha

--HG--
extra : rebase_source : 41e4666401cd58b1022aa4eed936987300213b6a
2018-02-16 17:46:46 -05:00
Andrew Halberstadt
84797ec831 Bug 1373368 - [mozlint] Lint whole tree if using --workdir/--outgoing and support-file was modified, r=standard8
Previously, using --workdir or --outgoing could miss errors when modifying a
support file since those could affect unmodified files.

This patch allows linters to define support-files in their .yml configuration.
If using --outgoing or --workdir and a file matching one of those patterns was
modified, we'll lint the entire tree.

MozReview-Commit-ID: CuGLYwQwiWr

--HG--
extra : rebase_source : 00d4107c41404f5e6ab05e0106d5cd377e25652f
2018-02-16 17:46:04 -05:00
Andrew Halberstadt
e04895a098 Bug 1373368 - [mozlint] Raise if a non-existant path is specified in a lint config, r=standard8
Since I left the next two patches to bitrot, I realized that a path I had added
didn't exist anymore. We should definitely error out if non-existant paths are
specified, otherwise the lists will become outdated and it will be possible to
accidentally disable linting on some files.

I discovered a few instances of this already in our existing definitions.

MozReview-Commit-ID: 8jsTKLI0nFE

--HG--
extra : rebase_source : acceb0b129fc472fb456ff527e4c8c52228edd59
2018-03-29 14:50:17 -04:00
Tom Prince
4db579141b Backed out 3 changesets (bug 1439860, bug 1441867, bug 1446110) for breaking update packaging for thunderbird.
Backed out changeset 4d434313555a (bug 1446110)
Backed out changeset 0476c309909b (bug 1441867)
Backed out changeset 40237ca354be (bug 1439860)

--HG--
extra : rebase_source : 3c67b6e3af0589eae97784227c05b9e2ca9b6994
2018-04-05 13:48:38 -06:00
Mark Banner
57f0cf24f4 Bug 1451378 - Enable ESLint rule no-undef for more test files in devtools. r=jdescottes
MozReview-Commit-ID: 6q43u1m0hLI

--HG--
extra : rebase_source : 02bf20a95994ac2fb13e3a69e3d504564fcc279d
2018-04-04 16:56:30 +01:00
Dave Hunt
057d540744 Bug 1438250 - Make mozunit pip installable; r=ahal
MozReview-Commit-ID: BT4ciGT82bp

--HG--
rename : config/mozunit.py => config/mozunit/mozunit/mozunit.py
extra : rebase_source : a68fa4f5dce77ccf7c55184c555bb37b3a876278
2018-03-29 14:18:00 +01:00
Andrew Halberstadt
d2e75d0ea8 Bug 1436802 - [lint] Add some tests for the flake8 linter integration r=andi
This essentially tests tools/lint/python/flake8.py. Though it also adds
a basic framework for testing all the other linters as well. Getting this
added now will allow others to collaborate on adding more tests without
needing to get to 100% coverage for all linters right off the bat.

All python tests under tools/lint/test will run as part of the 'ml' task
on Linux, and the build task on Windows (OSX coverage is currently missing
for python tests).

The flake8 linter currently has a bug where the 'exclude' argument is
ignored. This is why we need to also exclude 'tools/lint/test/files' in
topsrcdir/.flake8, even though it is already listed in the
'mach_commands.py'. Other linters shouldn't need to do this, the exclusion
in 'mach_commands.py' should be good enough. See bug 1277851 for more
details.

MozReview-Commit-ID: 9ho8C83eeuj

--HG--
extra : rebase_source : 0adb01aa81c06f26cb891ae9f92a17f8f9fdf111
2018-03-22 17:24:15 -04:00
Edouard Oger
b03a892251 Bug 1448165 p2 - Remove un-used ON_FXA_UPDATE_NOTIFICATION. r=markh
FxAccountsManager has been removed from the tree and now one else listened to
this event.

MozReview-Commit-ID: By7kkWbwBvW

--HG--
extra : rebase_source : 35b1ce32859e21b92d060835362400d1a356e81d
2018-03-22 13:32:10 -04:00
Mark Banner
f1ed0a2b70 Bug 1447944 - Enable ESLint rule no-undef for test files in devtools/server/tests/unit/. r=jdescottes
MozReview-Commit-ID: JBtDdAUraQ2

--HG--
extra : rebase_source : 544ada916f5d3fd41f57225b19897d6b21407425
2018-03-22 10:59:26 +00:00
Peter Van der Beken
f5754d679a Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : 5911f91bd7a63cd3603494e087e3858bd0527500
2018-03-01 20:19:56 +01:00
J. Ryan Stinnett
0cee298854 Bug 1446222 - Move DevTools content process startup to new dir. r=jdescottes
Move and rename the server's process script (and accompanying JSM) that starts
DevTools for an entire content process from `content-process-debugger-server.js`
to `startup/content-process.js`.  `connectToContent` also becomes the more
specific `connectToContentProcess`.

These code paths will likely change more as Site Isolation work continues, but
for now, we have this light cleanup to gather startup-related paths together.

MozReview-Commit-ID: 1evbZMB8T7r

--HG--
rename : devtools/server/content-process-debugger-server.js => devtools/server/startup/content-process.js
rename : devtools/server/content-server.jsm => devtools/server/startup/content-process.jsm
extra : rebase_source : e077dd3dc915ec274f866d53d3539909f8440de1
2018-03-19 21:28:26 -05:00
Mark Banner
60f8abf420 Bug 1443093 - Change the update.sh scripts to use in-tree tooltool.py and update the node_modules bundles on the servers. r=mossop
MozReview-Commit-ID: HQLRoOYVjXo

--HG--
extra : rebase_source : 9f2d7925f3f75b6d488056d4e03af92ce63d433c
2018-03-19 10:18:49 +00:00
Mark Banner
0f3ec963be Bug 1443093 - Update eslint-plugin-no-unsanitized to 3.0.0 / eslint to 4.18.2. r=mossop
Also change eslint-plugin-mozilla's globals.js to use eslint-scope rather than escope as
ESLint 4.x changed to eslint-scope. This avoids dependency issues that were masked by the
depedencies of eslint-plugin-no-unsanitized's previous version.

MozReview-Commit-ID: 6wLY7Oj0am3

--HG--
extra : rebase_source : 863313d7907e8246d1f5b0ee83164cc0f943f8f6
2018-03-05 10:34:38 +00:00
Bogdan Tara
7eb4cdd58d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-17 12:34:09 +02:00
Bogdan Tara
4785e99532 Merge inbound to mozilla-central. a=merge 2018-03-17 12:29:57 +02:00
Kris Maglione
313b707b2e Bug 1443964: Part 3 - Remove no-cpows-in-tests rule. r=mconley
The shims that this rule tests for no longer exist.

MozReview-Commit-ID: DMgP7Hczavc

--HG--
extra : rebase_source : 765ddd5c62c9449c07ed050e44d86a3bd5c0ae64
extra : amend_source : 627a7694ac07182200f876901ded7a34721cd228
2018-03-07 19:31:28 -08:00