Граф коммитов

388 Коммитов

Автор SHA1 Сообщение Дата
Steve Armand 08d5fcd935 Bug 1397423 - Enable py2 linter on python/mozlint. r=ahal
MozReview-Commit-ID: 6QX7YCmfjdJ

--HG--
extra : rebase_source : 0610d67f376c462b0f103a6510f21459fc39f940
2017-09-06 22:52:46 -04:00
Dustin J. Mitchell d7b6f0148a Bug 1397318: mozlint -l py2 for taskcluster/; r=ahal
MozReview-Commit-ID: 1ZUOrIfxQef

--HG--
extra : rebase_source : c398af2faa83812a70213679d5cb4ad0024d8f7d
2017-09-06 17:29:32 +00:00
Sebastian Hengst 9c8a09d458 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: KLssMPhSQ0O
2017-09-06 11:26:13 +02:00
Sebastian Hengst b278f15c7f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-06 00:00:04 +02:00
Cosm 917335fa1c Bug 1395956 - Update gecko.readthedocs links to the new firefox-source-docs.mozilla.org location. r=chutten 2017-09-02 22:11:02 +05:30
Mark Hammond 27afdd11e1 Bug 1396544 - don't schedule syncs when Sync isn't configured. r=rnewman
MozReview-Commit-ID: AM0G43vFyty

--HG--
extra : rebase_source : 9888cfd079f4761debb710d1bbe064956aec1093
2017-09-05 12:40:53 +10:00
Steve Armand e46ff00709 Bug 1368967 - Enable the ESLint generator-star-spacing rule across mozilla-central. r=standard8
MozReview-Commit-ID: 5do3eoCEAMR

--HG--
extra : rebase_source : 5f692e474e1d7d173fcb4c9c08617f0fe489e443
2017-09-04 00:49:32 -04:00
Mark Hammond 2dad858a21 Bug 1375635 - Add telemetry for how often and long users are in bad authentication states. r=Dexter,rweiss+418169,tcsc
MozReview-Commit-ID: BW8ixM3wmxJ

--HG--
extra : rebase_source : 6872e86fbd6ff00c4ab65ef4bf8c6195e06de54b
2017-07-27 11:59:24 +10:00
Andrew Halberstadt 3411e8b3d4 Bug 1391019 - Add py2 and py3 compatability linters, r=gps
check_compat.py was adapted from gps' check-py3-compat.py in mercurial:
https://www.mercurial-scm.org/repo/hg/file/tip/contrib/check-py3-compat.py

The py3 linter simply runs ast.parse(f) for each file being linted. Any syntax errors
are formatted as mozlint results and dumped to stdout as json. I looked into also
importing the file (using 3.5+'s importlib.util.spec_from_file_location), but there
were too many problems:

1. Lots of false positives (e.g module not found)
2. Some files seemed to run indefinitely on import

I decided to punt on importing for now, we can always investigate in a follow-up.

The py2 linter runs ast.parse(f), and also checks that the file has:
from __future__ import absolute_import, print_function

Initially every python file in the tree is excluded from the py2 check, though
at least this makes it easy to find+fix, and new files in un-excluded
directories will automatically be linted.

MozReview-Commit-ID: ABtq9dnPo9T

--HG--
extra : rebase_source : 60762937284d498514cd020b90cbfd2ba23f0b70
2017-08-31 10:12:02 -04:00
Andrew Halberstadt 3c2a0965ed Bug 1391019 - Move tools/lint/flake_/__init__.py to tools/lint/python/flake8.py, r=gps
This will allow us keep python related linting files in the same place.

MozReview-Commit-ID: ABtq9dnPo9T

--HG--
rename : tools/lint/flake8_/__init__.py => tools/lint/python/__init__.py
rename : tools/lint/flake8_/__init__.py => tools/lint/python/flake8.py
rename : tools/lint/flake8_/flake8_requirements.txt => tools/lint/python/flake8_requirements.txt
extra : rebase_source : 2568bc0bf8f4adbf8e0be73a54d5da068a8d81b0
2017-08-31 10:06:08 -04:00
Andrew Halberstadt 74afe80557 Bug 1339178 - Add python/mach_commands.py and config/mozunit.py to flake8 linter, r=davehunt
MozReview-Commit-ID: Gcsz6z8MeOi

--HG--
extra : rebase_source : 121c9007d336cecbd068075dc54d66cc06e8334e
2017-08-29 14:41:38 -04:00
Andrew Halberstadt 2255a9eed7 Bug 1395126 - Support cascading configuration for flake8, r=bc
This allows .flake8 files to override one another, and fixes a pretty bad known
bug with our flake8 implementation. For example, say we have a .flake8 file at:
/foo/.flake8

Before this patch, if we ran |mach lint foo/bar|, the configuration defined in
that .flake8 file wouldn't get picked up. It would only work if running the
specific directory that contains it, e.g |mach lint foo|.

This change additionally allows multiple .flake8 files to be used. So if
there's one defined at both:
/.flake8
/foo/.flake8

Then running |mach lint foo/bar| will first apply the root .flake8, then the
one under /foo (overriding earlier configuration).

This bug still doesn't make flake8 configuration perfect though. Any directory
containing a .flake8 file still needs to be explicitly listed in the "include"
section of /tools/lint/flake8.yml. Otherwise in the example above, if running
|mach lint /|, it wouldn't be able to find /foo/.flake8. This is a hard problem
and is likely best solved by fixing flake8's upstream configuration handling.

Unfortunately this means we still can't switch from a whitelist to a blacklist.

MozReview-Commit-ID: 3DZAi1QHYYo

--HG--
extra : rebase_source : 51298c5847f6c2792581d9b312c87b70fa716ee1
2017-08-29 17:32:31 -04:00
Phil Ringnalda 5e0cb1d330 Merge m-c to m-i
MozReview-Commit-ID: 3TTO51aTTST
2017-08-26 18:20:19 -07:00
Zibi Braniecki c5a354a1d6 Bug 1393928 - Expose intl/l10n .jsm APIs explicitly. r=mossop
MozReview-Commit-ID: Z57nlQJnQT

--HG--
extra : rebase_source : 5b6e5e804a14eef7847dfa1aada4588d401a43f6
2017-08-25 12:59:18 -07:00
Kris Maglione b744ab0807 Bug 1384714: Use subscript loader to load browser.xul scripts. r=Mossop
There's a lot of overhead to loading scripts from <script> tags in
browser.xul. They're loaded asynchronously, and can't begin loading until
after we begin loading browser.xul. They're loaded using off-main-thread
compilation, which means we need to create and merge a new JS zone for each
script we load that way. They don't benefit from the startup cache at all.

If we load those scripts using the subscript loader, they're loaded from the
preloader cache, and begin loading as early as possible. And they're all
loaded into a single off-thread zone, which means there are less zones to
create and merge. From a quick test, this seems to save about 20-40ms on
Windows ts_paint talos runs.

The main downside is that subscript loader scripts don't benefit from lazy
parsing, so we might wind up increasing memory usage if most of the functions
in those scripts aren't used very often. But we should hopefully be able to
fix that by migrating more browser JS to lazy loading.

MozReview-Commit-ID: Lozb0d0QweC

--HG--
extra : rebase_source : 069a003dfd1d6d66540da814a1fd19742c4fca26
extra : amend_source : b93e0ef7b320c99f4a27ddf6e8af6a681b6dba0f
2017-07-25 20:56:37 -07:00
Dan Banner f1eb5aaa84 Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8
MozReview-Commit-ID: JOC1330iFnh

--HG--
extra : rebase_source : 2afcb219d4a0d78f996bdc2c841456d2dccff605
2017-08-23 13:38:24 +01:00
Wes Kocher e8f7cc0bb3 Backed out 2 changesets (bug 1392787) for build bustage a=backout CLOSED TREE
Backed out changeset 2ce8a387fa80 (bug 1392787)
Backed out changeset bf5a6ff97a8f (bug 1392787)

MozReview-Commit-ID: 2cA5bdnNDIe
2017-08-24 14:00:42 -07:00
Andrew Halberstadt b24f01064e Bug 1392787 - Add a linter to prevent comment-disabling tests in manifestparser manifests, r=jmaher
MozReview-Commit-ID: LG47ASBMA17

--HG--
extra : rebase_source : df925b5d234a889bfb472eb33a3204465aa64f79
2017-08-23 09:33:18 -04:00
Mark Banner a53020d022 Bug 1392098 - Enable the new ESLint no-useless-run-test rule across the tree. r=mossop
MozReview-Commit-ID: 35MaseieNUk

--HG--
extra : rebase_source : 98eaec6a67fd3b30ea6b0be641f26c3911012fab
2017-08-20 18:52:05 +01:00
Mark Banner a9005029b6 Bug 1392098 - Add an ESLint rule to avoid unnecessary run_test() functions. r=mossop
MozReview-Commit-ID: pbXjamX4bk

--HG--
extra : rebase_source : cc506d08e7d47e75464ca7f07bd3ef323184270d
2017-08-18 21:49:44 +01:00
Andrew Halberstadt 115f346cd8 Bug 1392795 - [yamllint] Group paths to lint by their closest config and run each config group separately, r=dustin
This makes configuration files for yamllint work a bit better. It's still not perfect, but it's an improvement
on the current situation.

MozReview-Commit-ID: IKxgQm1a7bP

--HG--
extra : rebase_source : 051fafe21337f0557ee39ec71c90e74fd61d3da7
2017-08-23 11:28:28 -04:00
Wes Kocher c043502159 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
James Graham 30cd16ab59 Bug 1391582 - Fix wpt lint for upstream changes, a=testonly
MozReview-Commit-ID: 42Bozz991wW
2017-08-18 17:26:54 +01:00
Luke Chang 04df87ad05 Bug 1387988 - [Form Autofill] Move "findLabelElements" function to FormAutofillHeuristics.jsm. r=MattN
MozReview-Commit-ID: 93c9R7JaCLA

--HG--
extra : rebase_source : 2cb9276901c4f2ff91da55cc5d0dc095a74524dd
2017-08-07 18:34:27 +08:00
Andrew Halberstadt 411adfbc83 Bug 1387555 - [mozlint] Make use of quickfix when using --edit with vim/nvim, r=dylan
MozReview-Commit-ID: BlJbWVv1CeO

--HG--
extra : rebase_source : 005f72d9f74ccd86ae73a298acde6b0b3fd6a550
2017-08-09 10:03:02 -04:00
Andrew Halberstadt d2109610fb Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw

--HG--
extra : rebase_source : 8607b3964da207a6076c79b6f1d75b40503cdd7d
2017-08-10 14:48:21 -04:00
Phil Ringnalda 0ff5a4285d Backed out changeset 6896f93a2327 (bug 1385352) for not making it to m-c before the next violation of its new linting rule merged to autoland
MozReview-Commit-ID: 3HDE2C3wSU0
2017-08-10 20:21:19 -07:00
Wes Kocher cff9e9b197 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2YvHbITn9w3
2017-08-10 18:25:34 -07:00
Wes Kocher 936a9461f6 Merge inbound to m-c a=merge
MozReview-Commit-ID: KRQeIGmhAPA
2017-08-10 18:14:34 -07:00
Justin Wood 20a660940c Bug 1387862 - Lint the linter config yaml files themselves. r=ahal
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: F8hTBerSNIj

--HG--
extra : rebase_source : 87f84b855f29b5625bacae5c199d99d144c02bc8
2017-08-06 13:47:03 -04:00
Justin Wood 8d2bd44930 Bug 1387862 - Lint NSS's taskcluster.yml. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: ATX5IOK747y

--HG--
extra : rebase_source : c7a5a0e7a33a6a52ec92d6d6fd8a7c35bfdfa5c0
2017-08-06 13:44:41 -04:00
Justin Wood f66ff278ca Bug 1387862 - Lint python/mozlint yaml files. r=ahal
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: IMOKGhxKFJW

--HG--
extra : rebase_source : 8c695dcb3a81b6683bc76ba663feeacb3126691e
2017-08-06 13:43:04 -04:00
Justin Wood 5b369e18a4 Bug 1387862 - Lint taskcluster's cron.yml file, fixup lint errors. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: 758kdSddjJN

--HG--
extra : rebase_source : d538b8400a92d14ab6b397f33327619e885106cc
2017-08-06 13:35:27 -04:00
Justin Wood 3f653d8d9b Bug 1387862 - Lint taskcluster yaml files. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: L83j6SODA3w

--HG--
extra : rebase_source : afb1a26e4a6819fc326f3bd1e9b856d6104597a8
2017-08-06 13:26:13 -04:00
Justin Wood b09ed76339 Bug 1387862 - Add initial support for ./mach lint -l yaml r=ahal,dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: HYVWXzNnnzG

--HG--
rename : tools/lint/flake8_/__init__.py => tools/lint/yamllint_/__init__.py
extra : rebase_source : f4919be1341f6081b99d8b122004f9c2978cc677
2017-08-06 13:23:48 -04:00
Sebastian Hengst 19fae7e07d Backed out changeset 98c08b9cc52e (bug 1387862) for linting failure at .cron.yml:51 (too few spaces). r=backout 2017-08-10 14:30:46 +02:00
Sebastian Hengst 65a53b0bca Backed out changeset a86a804e64ee (bug 1387862) 2017-08-10 14:29:59 +02:00
Sebastian Hengst 88b3637c8c Backed out changeset c13bd0798514 (bug 1387862) 2017-08-10 14:29:54 +02:00
Sebastian Hengst ca07202265 Backed out changeset 103073e92350 (bug 1387862) 2017-08-10 14:29:48 +02:00
Sebastian Hengst 33266b5810 Backed out changeset 9e1723c2e1c9 (bug 1387862) 2017-08-10 14:29:43 +02:00
Sebastian Hengst ce4158f736 Backed out changeset 57176d7ff82a (bug 1387862) 2017-08-10 14:29:37 +02:00
Justin Wood 1a5e403ed2 Bug 1387862 - Lint the linter config yaml files themselves. r=ahal
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: F8hTBerSNIj

--HG--
extra : rebase_source : 2d1d3d8d98fd3f0abe3494c49ad01072181c4e08
2017-08-06 13:47:03 -04:00
Justin Wood 6f775a5e66 Bug 1387862 - Lint NSS's taskcluster.yml. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: ATX5IOK747y

--HG--
extra : rebase_source : 24583ac74033923f0e4bcf6053169f09ef76b833
2017-08-06 13:44:41 -04:00
Justin Wood 582030b224 Bug 1387862 - Lint python/mozlint yaml files. r=ahal
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: IMOKGhxKFJW

--HG--
extra : rebase_source : a2e47f5c5517e999fe21bac4f86491611bd0cece
2017-08-06 13:43:04 -04:00
Justin Wood 687c9e4240 Bug 1387862 - Lint taskcluster's cron.yml file, fixup lint errors. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: 758kdSddjJN

--HG--
extra : rebase_source : 8c8d55ea55737a5c2faca9f91478c72296c881b7
2017-08-06 13:35:27 -04:00
Justin Wood b987f769d1 Bug 1387862 - Lint taskcluster yaml files. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: L83j6SODA3w

--HG--
extra : rebase_source : b5aee7a53c2fe25381116e45a4475d66ebba2903
2017-08-06 13:26:13 -04:00
Justin Wood 143c24a47a Bug 1387862 - Add initial support for ./mach lint -l yaml r=ahal,dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: HYVWXzNnnzG

--HG--
rename : tools/lint/flake8_/__init__.py => tools/lint/yamllint_/__init__.py
extra : rebase_source : 54460179e51f6263099a6837e1111dcce05a9331
2017-08-06 13:23:48 -04:00
Ryan VanderMeulen 24396489e3 Backed out 7 changesets (bug 1387862) for yaml linting failures.
Backed out changeset 63f87f6db7d6 (bug 1387862)
Backed out changeset a85b7e7d9f24 (bug 1387862)
Backed out changeset 3713ea9672e8 (bug 1387862)
Backed out changeset 22c1094e387f (bug 1387862)
Backed out changeset e0bfb35b0eec (bug 1387862)
Backed out changeset 5bb5dc7655ec (bug 1387862)
Backed out changeset cc4c01794114 (bug 1387862)
2017-08-09 21:31:30 -04:00
Justin Wood 9eadced082 Bug 1387862 - Lint the linter config yaml files themselves. r=ahal
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: F8hTBerSNIj

--HG--
extra : rebase_source : b3b420eb4f66e448e41de4b556c200e1bd590094
2017-08-06 13:47:03 -04:00
Justin Wood a37b9ce0f2 Bug 1387862 - Lint NSS's taskcluster.yml. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: ATX5IOK747y

--HG--
extra : rebase_source : 493c6c762e3b26f1295205c0300df8b0cd87bc7b
2017-08-06 13:44:41 -04:00