Commit Graph
412 Commits
Author SHA1 Message Date
Andrew Halberstadt 8d00bb6a0b Bug 1401309 - Add python/mozversioncontrol to flake8 linter, r=gps
MozReview-Commit-ID: KuyEYa3Mbgd
2017-09-20 10:02:26 -04:00
Sebastian Hengst 68a92cc953 Backed out changeset dbe60b600dc0 (bug 1397853) for failining linter py-compat at testing/mochitest/runtests.py:2236. r=backout 2017-09-28 14:58:36 +02:00
Steve Armand bee8bf3989 Bug 1397853 - Enable py2 and py3 linter on testing/mochitest. r=ahal
MozReview-Commit-ID: EhkNhyFHDox
2017-09-24 21:28:25 -04:00
Tomislav Jovanovic b1230d96e1 Bug 1386427 - Part 2: Extract HostManifestManager to NativeManifests.jsm r=kmag
MozReview-Commit-ID: GrVBZbkTfrB
2017-09-15 20:14:56 +02:00
Thom Chiovoloni 1c514ba37f Bug 1393659 - Fix inconsistent handling of max_post_bytes and max_request_bytes r=markh
MozReview-Commit-ID: 4jwpAYNuoQj
2017-09-13 18:02:41 -07:00
Andrew Halberstadt 8dcdb28a59 Bug 1392787 - Add a linter to prevent comment-disabling tests in manifestparser manifests, r=jmaher
MozReview-Commit-ID: LG47ASBMA17
2017-08-23 09:33:18 -04:00
Sebastian Hengst 2bdce0b67c Backed out changeset f4c33a37fe6d (bug 1395890) for failing browser-chrome's browser/components/extensions/test/browser/browser_ext_find.js. r=backout on a CLOSED TREE 2017-09-19 16:35:31 +02:00
Dan Banner f7d41414af Bug 1395890 - Change all ESLint rules that are warnings to errors. r=standard8
MozReview-Commit-ID: LJS6m1GppiS
2017-09-18 19:07:17 +01:00
Steve Armand 2a4050aa7b Bug 1399989 - Add python/mach to flake8 linter. r=gps
MozReview-Commit-ID: KKnBgYFwpfT
2017-09-17 22:41:17 -04:00
Mark Banner d8d3026780 Bug 1399946 - Bump version number of eslint-plugin-mozilla for releasing the dependency fixes from bug 1395879. r=ahal
MozReview-Commit-ID: 79nDcgcvm0c
2017-09-18 09:15:57 +01:00
Edouard Oger 1a12042a1e Bug 1383663 part 3 - Update FxA local state on profile email change. r=markh
MozReview-Commit-ID: 5epKjoT4TF3
2017-08-21 17:01:57 -04:00
Phil Ringnalda 61dd78606e Backed out 3 changesets (bug 1383663) for timeouts in browser_aboutAccounts.js and failures in test_web_channel.js
Backed out changeset f384a524cac6 (bug 1383663)
Backed out changeset 9d26a627e2f8 (bug 1383663)
Backed out changeset c7d46e2e8ddc (bug 1383663)

MozReview-Commit-ID: 88xbdeVJtK2
2017-09-16 10:40:00 -07:00
Edouard Oger b30f78a8b2 Bug 1383663 part 3 - Update FxA local state on profile email change. r=markh
MozReview-Commit-ID: 5epKjoT4TF3
2017-08-21 17:01:57 -04:00
Mark Banner ef317549f6 Bug 1395879 - Remove espree/escope etc from the direct dependencies of eslint-plugin-mozilla since they are really peerDependencies supplied by the existing eslint peer. r=mossop
MozReview-Commit-ID: 2FEfFaEoomU
2017-09-01 11:27:33 +01:00
Steve Armand 7d1ce50630 Bug 1397852 - Enable flake8 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CvZVXQPx8jF
2017-09-14 09:51:27 -04:00
ruby 40f792bfb3 Bug 1397427 - Enable py2 linter on tools/tryselect, r=ahal
MozReview-Commit-ID: K12XisbVQGq
2017-09-13 11:57:47 +05:30
Alexandre Poirot e4d4fa2cc6 Bug 1399449 - Convert devtools/client/responsivedesign/responsivedesign.jsm to a commonjs module. r=jryans
MozReview-Commit-ID: Jl6OGUWnbHN
2017-09-13 14:33:58 +02:00
Steve Armand 07ba3db5a9 Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J
2017-09-07 21:15:35 -04:00
Sebastian Hengst 114eb8db4c merge mozilla-central to autoland. r=merge a=merge 2017-09-13 11:30:55 +02:00
Andrew Halberstadt 1fbc2598bb Bug 1398765 - Fix directory exclusion bug in py-compat linters, r=gps
The excluded directories aren't being properly handled in the py2/py3 compat
linters. In order for FileFinder to apply the exclusions properly they need
to either be relative to or contained by the base.

This means that currently the following will work:
./mach lint -l py2 <topsrcdir>
./mach lint -l py2 testing/mochitest

But this is broken:
./mach lint -l py2 testing

This change fixes the compat linters so exclude paths will be made relative
to the FileFinder base before passing them in. Any exclude not contained by
the base is simply discarded as it won't be relevant to that FileFinder
instance anyway.

MozReview-Commit-ID: LJx97TvKlSa
2017-09-11 09:03:53 -04:00
Sebastian Hengst ee91a101d1 Backed out changeset ec61b7a902c2 (bug 1397855) for XPCshell bustage, at least on Android. r=backout on a CLOSED TREE 2017-09-12 21:42:12 +02:00
Steve Armand fdf89b0329 Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J
2017-09-07 21:15:35 -04:00
Kris Maglione 051a41c813 Bug 1371065: Part 1 - Remove external references to the add-on SDK. r=Mossop,glandium
MozReview-Commit-ID: D5KyHcg8Ujk
2017-09-12 11:54:47 -07:00
Ionut Goldan e12c4137b7 Bug 1396217 - resolve py2 and py3 lint errors r=jmaher
MozReview-Commit-ID: LG332HzJKcw
2017-09-08 11:27:26 +03:00
Steve Armand 7f77fd4581 Bug 1397423 - Enable py2 linter on python/mozlint. r=ahal
MozReview-Commit-ID: 6QX7YCmfjdJ
2017-09-06 22:52:46 -04:00
Dustin J. Mitchell 0a6d21881e Bug 1397318: mozlint -l py2 for taskcluster/; r=ahal
MozReview-Commit-ID: 1ZUOrIfxQef
2017-09-06 17:29:32 +00:00
Sebastian Hengst ac4808b6f9 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: KLssMPhSQ0O
2017-09-06 11:26:13 +02:00
Sebastian Hengst 09a45e8ab9 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-06 00:00:04 +02:00
Cosm 5b0201f997 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 cbadba5571 Bug 1396544 - don't schedule syncs when Sync isn't configured. r=rnewman
MozReview-Commit-ID: AM0G43vFyty
2017-09-05 12:40:53 +10:00
Steve Armand b03be0d87e Bug 1368967 - Enable the ESLint generator-star-spacing rule across mozilla-central. r=standard8
MozReview-Commit-ID: 5do3eoCEAMR
2017-09-04 00:49:32 -04:00
Mark Hammond ff8c688499 Bug 1375635 - Add telemetry for how often and long users are in bad authentication states. r=Dexter,rweiss+418169,tcsc
MozReview-Commit-ID: BW8ixM3wmxJ
2017-07-27 11:59:24 +10:00
Andrew Halberstadt abb5b5a1c0 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
2017-08-31 10:12:02 -04:00
Andrew Halberstadt 1432d39374 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
2017-08-31 10:06:08 -04:00
Andrew Halberstadt d4a9ebe802 Bug 1339178 - Add python/mach_commands.py and config/mozunit.py to flake8 linter, r=davehunt
MozReview-Commit-ID: Gcsz6z8MeOi
2017-08-29 14:41:38 -04:00
Andrew Halberstadt 1d6a04b606 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
2017-08-29 17:32:31 -04:00
Phil Ringnalda 18849ee2a4 Merge m-c to m-i
MozReview-Commit-ID: 3TTO51aTTST
2017-08-26 18:20:19 -07:00
Zibi Braniecki afc023d90e Bug 1393928 - Expose intl/l10n .jsm APIs explicitly. r=mossop
MozReview-Commit-ID: Z57nlQJnQT
2017-08-25 12:59:18 -07:00
Kris Maglione 1e99372ec0 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
2017-07-25 20:56:37 -07:00
Dan Banner 69fb4d8501 Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8
MozReview-Commit-ID: JOC1330iFnh
2017-08-23 13:38:24 +01:00
Wes Kocher 086def78e5 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 e072454073 Bug 1392787 - Add a linter to prevent comment-disabling tests in manifestparser manifests, r=jmaher
MozReview-Commit-ID: LG47ASBMA17
2017-08-23 09:33:18 -04:00
Mark Banner 44963145a5 Bug 1392098 - Enable the new ESLint no-useless-run-test rule across the tree. r=mossop
MozReview-Commit-ID: 35MaseieNUk
2017-08-20 18:52:05 +01:00
Mark Banner cd2f4980f7 Bug 1392098 - Add an ESLint rule to avoid unnecessary run_test() functions. r=mossop
MozReview-Commit-ID: pbXjamX4bk
2017-08-18 21:49:44 +01:00
Andrew Halberstadt 46f429a1fd 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
2017-08-23 11:28:28 -04:00
Wes Kocher f4e87a1fb3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
James Graham dcc71aedaf Bug 1391582 - Fix wpt lint for upstream changes, a=testonly
MozReview-Commit-ID: 42Bozz991wW
2017-08-18 17:26:54 +01:00
Luke Chang 046894fc08 Bug 1387988 - [Form Autofill] Move "findLabelElements" function to FormAutofillHeuristics.jsm. r=MattN
MozReview-Commit-ID: 93c9R7JaCLA
2017-08-07 18:34:27 +08:00
Andrew Halberstadt c6c7ed20a2 Bug 1387555 - [mozlint] Make use of quickfix when using --edit with vim/nvim, r=dylan
MozReview-Commit-ID: BlJbWVv1CeO
2017-08-09 10:03:02 -04:00
Andrew Halberstadt 1ecb0adc26 Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw
2017-08-10 14:48:21 -04:00