Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)

Created:
Feb. 20, 2017, 10:02 a.m. by kzar
Modified:
March 16, 2017, 10:51 a.m.
Visibility:
Public.

Description

Issue 4878 - Start using ESLint for adblockpluscore The unit tests still pass and adblockpluschrome still seems to work OK with these changes.

Patch Set 1 #

Total comments: 29

Patch Set 2 : Stop using commonjs, fix other problems #

Patch Set 3 : Addressed Sebastian's initial feedback #

Total comments: 22

Patch Set 4 : Addressed further feedback from Sebastian #

Patch Set 5 : Disable no-console for the tests #

Total comments: 10

Patch Set 6 : Remove shared-node-browser env and Buffer global #

Patch Set 7 : Rebased. #

Total comments: 112

Patch Set 8 : Addressed Wladimir's comments #

Patch Set 9 : Remove the arrow-parens rule #

Total comments: 6

Patch Set 10 : Fixed valid-jsdoc failures and addressed nits #

Patch Set 11 : Rebased #

Patch Set 12 : Fix Cu.imports in synchronizer.js that I missed previously #

Total comments: 3

Patch Set 13 : Removed unused imports #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1472 lines, -985 lines) Patch
A .eslintignore View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A .eslintrc.json View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -0 lines 0 comments Download
M README.md View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M lib/common.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M lib/coreUtils.js View 1 chunk +2 lines, -0 lines 0 comments Download
M lib/downloader.js View 1 2 3 4 5 6 7 13 chunks +95 lines, -68 lines 0 comments Download
M lib/elemHide.js View 1 2 3 4 5 6 7 11 chunks +46 lines, -41 lines 0 comments Download
M lib/elemHideEmulation.js View 1 2 3 4 5 6 7 3 chunks +16 lines, -11 lines 0 comments Download
M lib/events.js View 1 2 5 chunks +7 lines, -11 lines 0 comments Download
M lib/filterClasses.js View 1 2 3 4 5 6 7 8 9 40 chunks +222 lines, -149 lines 0 comments Download
M lib/filterListener.js View 1 2 3 4 5 6 7 8 chunks +41 lines, -29 lines 0 comments Download
M lib/filterNotifier.js View 1 2 3 4 5 6 7 8 9 4 chunks +20 lines, -6 lines 0 comments Download
M lib/filterStorage.js View 1 2 3 4 5 6 7 32 chunks +198 lines, -124 lines 0 comments Download
M lib/matcher.js View 1 2 3 4 5 6 7 8 9 18 chunks +105 lines, -57 lines 0 comments Download
M lib/notification.js View 1 2 3 4 5 6 7 8 9 22 chunks +106 lines, -59 lines 0 comments Download
M lib/rsa.js View 1 2 3 4 5 6 7 9 chunks +45 lines, -30 lines 0 comments Download
M lib/subscriptionClasses.js View 1 2 3 4 5 6 7 8 9 24 chunks +104 lines, -70 lines 0 comments Download
M lib/synchronizer.js View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +89 lines, -55 lines 0 comments Download
A test/.eslintrc.json View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M test/_common.js View 1 2 3 4 5 6 7 8 9 19 chunks +87 lines, -77 lines 0 comments Download
M test/domainRestrictions.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M test/elemHide.js View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M test/elemHideEmulation.js View 1 2 3 4 5 6 7 3 chunks +22 lines, -12 lines 0 comments Download
M test/filterClasses.js View 1 2 3 11 chunks +50 lines, -40 lines 0 comments Download
M test/filterListener.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M test/filterNotifier.js View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M test/filterStorage.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M test/filterStorage_readwrite.js View 1 2 3 4 5 6 7 7 chunks +17 lines, -16 lines 0 comments Download
M test/matcher.js View 1 2 3 4 5 6 7 4 chunks +5 lines, -5 lines 0 comments Download
M test/notification.js View 1 2 9 chunks +12 lines, -10 lines 0 comments Download
M test/regexpFilters_matching.js View 1 2 3 4 5 6 7 2 chunks +7 lines, -6 lines 0 comments Download
M test/signatures.js View 1 2 3 5 chunks +13 lines, -13 lines 0 comments Download
M test/stub-modules/info.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/stub-modules/io.js View 8 chunks +24 lines, -25 lines 0 comments Download
M test/stub-modules/prefs.js View 2 chunks +7 lines, -2 lines 0 comments Download
M test/stub-modules/utils.js View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M test/subscriptionClasses.js View 1 2 3 4 5 6 7 2 chunks +39 lines, -26 lines 0 comments Download
M test/synchronizer.js View 1 2 13 chunks +17 lines, -18 lines 0 comments Download
M test_runner.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -7 lines 0 comments Download

Messages

Total messages: 25
kzar
Patch Set 1
Feb. 20, 2017, 10:31 a.m. (2017-02-20 10:31:50 UTC) #1
Felix Dahlke
> The (non browser) unit tests still pass What about the browser tests? Those should ...
Feb. 20, 2017, 11:32 a.m. (2017-02-20 11:32:14 UTC) #2
kzar
On 2017/02/20 11:32:14, Felix Dahlke wrote: > What about the browser tests? Those should pass ...
Feb. 20, 2017, 12:15 p.m. (2017-02-20 12:15:53 UTC) #3
Sebastian Noack
I didn't make it through all changes yet. But I have to run, and here ...
Feb. 20, 2017, 1:14 p.m. (2017-02-20 13:14:52 UTC) #4
kzar
Patch Set 2 : Stop using commonjs, fix other problems
Feb. 21, 2017, 5:13 a.m. (2017-02-21 05:13:59 UTC) #5
kzar
Patch Set 3 : Addressed Sebastian's initial feedback https://codereview.adblockplus.org/29375915/diff/29375916/lib/downloader.js File lib/downloader.js (right): https://codereview.adblockplus.org/29375915/diff/29375916/lib/downloader.js#newcode20 lib/downloader.js:20: /* ...
Feb. 21, 2017, 6:14 a.m. (2017-02-21 06:14:00 UTC) #6
Sebastian Noack
https://codereview.adblockplus.org/29375915/diff/29375916/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29375915/diff/29375916/lib/elemHide.js#newcode270 lib/elemHide.js:270: let {selector} = filter; On 2017/02/21 06:13:58, kzar wrote: ...
Feb. 21, 2017, 9:19 a.m. (2017-02-21 09:19:32 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29375915/diff/29375916/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29375915/diff/29375916/lib/elemHide.js#newcode270 lib/elemHide.js:270: let {selector} = filter; On 2017/02/21 09:19:30, Sebastian Noack ...
Feb. 21, 2017, 9:20 a.m. (2017-02-21 09:20:13 UTC) #8
kzar
Patch Set 4 : Addressed further feedback from Sebastian https://codereview.adblockplus.org/29375915/diff/29375916/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29375915/diff/29375916/lib/elemHide.js#newcode270 lib/elemHide.js:270: ...
Feb. 21, 2017, 10:37 a.m. (2017-02-21 10:37:04 UTC) #9
Sebastian Noack
https://codereview.adblockplus.org/29375915/diff/29375916/.eslintignore File .eslintignore (right): https://codereview.adblockplus.org/29375915/diff/29375916/.eslintignore#newcode5 .eslintignore:5: # https://issues.adblockplus.org/ticket/4796 I really dislike how PhantomJS (not even ...
Feb. 21, 2017, 11:11 a.m. (2017-02-21 11:11:56 UTC) #10
kzar
Patch Set 5 : Disable no-console for the tests https://codereview.adblockplus.org/29375915/diff/29375916/.eslintignore File .eslintignore (right): https://codereview.adblockplus.org/29375915/diff/29375916/.eslintignore#newcode5 .eslintignore:5: ...
Feb. 21, 2017, 11:27 a.m. (2017-02-21 11:27:42 UTC) #11
Wladimir Palant
I only looked at the configuration at this point, not at the proposed changes. https://codereview.adblockplus.org/29375915/diff/29376785/.eslintrc.json ...
Feb. 21, 2017, 11:54 a.m. (2017-02-21 11:54:03 UTC) #12
kzar
Patch Set 6 : Remove shared-node-browser env and Buffer global https://codereview.adblockplus.org/29375915/diff/29376785/.eslintrc.json File .eslintrc.json (right): https://codereview.adblockplus.org/29375915/diff/29376785/.eslintrc.json#newcode5 ...
Feb. 23, 2017, 10:53 a.m. (2017-02-23 10:53:56 UTC) #13
kzar
Patch Set 7 : Rebased.
Feb. 28, 2017, 4 p.m. (2017-02-28 16:00:27 UTC) #14
Wladimir Palant
https://codereview.adblockplus.org/29375915/diff/29376785/.eslintrc.json File .eslintrc.json (right): https://codereview.adblockplus.org/29375915/diff/29376785/.eslintrc.json#newcode5 .eslintrc.json:5: "shared-node-browser": true On 2017/02/23 10:53:55, kzar wrote: > Yep, ...
March 2, 2017, 2:07 p.m. (2017-03-02 14:07:10 UTC) #15
kzar
Patch Set 8 : Addressed Wladimir's comments https://codereview.adblockplus.org/29375915/diff/29376785/.eslintrc.json File .eslintrc.json (right): https://codereview.adblockplus.org/29375915/diff/29376785/.eslintrc.json#newcode5 .eslintrc.json:5: "shared-node-browser": true ...
March 8, 2017, 12:33 p.m. (2017-03-08 12:33:59 UTC) #16
kzar
Patch Set 9 : Remove the arrow-parens rule
March 9, 2017, 10:28 a.m. (2017-03-09 10:28:37 UTC) #17
Wladimir Palant
https://codereview.adblockplus.org/29375915/diff/29377625/lib/matcher.js File lib/matcher.js (right): https://codereview.adblockplus.org/29375915/diff/29377625/lib/matcher.js#newcode393 lib/matcher.js:393: * @return {RegExpFilter|null} matching filter or null On 2017/03/08 ...
March 9, 2017, 2:37 p.m. (2017-03-09 14:37:16 UTC) #18
kzar
Patch Set 10 : Fixed valid-jsdoc failures and addressed nits https://codereview.adblockplus.org/29375915/diff/29377625/lib/matcher.js File lib/matcher.js (right): https://codereview.adblockplus.org/29375915/diff/29377625/lib/matcher.js#newcode393 ...
March 10, 2017, 6:56 a.m. (2017-03-10 06:56:16 UTC) #19
kzar
Patch Set 11 : Rebased
March 10, 2017, 7:05 a.m. (2017-03-10 07:05:49 UTC) #20
kzar
Patch Set 12 : Fix Cu.imports in synchronizer.js that I missed previously
March 14, 2017, 10:53 a.m. (2017-03-14 10:53:14 UTC) #21
kzar
https://codereview.adblockplus.org/29375915/diff/29383634/lib/synchronizer.js File lib/synchronizer.js (right): https://codereview.adblockplus.org/29375915/diff/29383634/lib/synchronizer.js#newcode24 lib/synchronizer.js:24: const {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {}); I just noticed no-unused-vars ...
March 14, 2017, 10:56 a.m. (2017-03-14 10:56:38 UTC) #22
Wladimir Palant
LGTM regardless of whether you address the comment below with this commit or a separate ...
March 14, 2017, 11:08 a.m. (2017-03-14 11:08:16 UTC) #23
kzar
Patch Set 13 : Removed unused imports https://codereview.adblockplus.org/29375915/diff/29383634/lib/synchronizer.js File lib/synchronizer.js (right): https://codereview.adblockplus.org/29375915/diff/29383634/lib/synchronizer.js#newcode24 lib/synchronizer.js:24: const {XPCOMUtils} ...
March 15, 2017, 3:13 a.m. (2017-03-15 03:13:12 UTC) #24
Wladimir Palant
March 16, 2017, 10:51 a.m. (2017-03-16 10:51:02 UTC) #25
Message was sent while issue was closed.
Still LGTM

Powered by Google App Engine
This is Rietveld