Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Issue 2913453002: js_checker.py: Replace custom WrapperTypeCheck with ESLint's no-new-wrappers. (Closed)

Created:
3 years, 6 months ago by dpapad
Modified:
3 years, 6 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, michaelpg
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

js_checker.py: Replace custom WrapperTypeCheck with ESLint's no-new-wrappers. BUG=720034 Review-Url: https://codereview.chromium.org/2913453002 Cr-Commit-Position: refs/heads/master@{#476121} Committed: https://chromium.googlesource.com/chromium/src/+/728cff0c8b3f6e205d5ab5d26e63df7e67e55d29

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add smoke tests. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -60 lines) Patch
M .eslintrc.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/web_dev_style/PRESUBMIT.py View 1 1 chunk +1 line, -0 lines 4 comments Download
M tools/web_dev_style/js_checker.py View 1 2 chunks +0 lines, -8 lines 0 comments Download
M tools/web_dev_style/js_checker_eslint_test.py View 1 1 chunk +15 lines, -8 lines 0 comments Download
M tools/web_dev_style/js_checker_test.py View 1 chunk +0 lines, -44 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
dpapad
Example error message: /workspage/chromium1/src/chrome/browser/resources/settings/direction_delegate.js 32:12 error Do not use String as a constructor no-new-wrappers ✖ ...
3 years, 6 months ago (2017-05-27 01:26:25 UTC) #5
Dan Beam
https://codereview.chromium.org/2913453002/diff/1/tools/web_dev_style/js_checker_test.py File tools/web_dev_style/js_checker_test.py (left): https://codereview.chromium.org/2913453002/diff/1/tools/web_dev_style/js_checker_test.py#oldcode270 tools/web_dev_style/js_checker_test.py:270: def ShouldFailWrapperTypeCheck(self, line): can we leave these? i know ...
3 years, 6 months ago (2017-05-30 16:16:21 UTC) #8
Dan Beam
lgtm
3 years, 6 months ago (2017-05-30 17:24:59 UTC) #9
dpapad
PTAL https://codereview.chromium.org/2913453002/diff/1/tools/web_dev_style/js_checker_test.py File tools/web_dev_style/js_checker_test.py (left): https://codereview.chromium.org/2913453002/diff/1/tools/web_dev_style/js_checker_test.py#oldcode270 tools/web_dev_style/js_checker_test.py:270: def ShouldFailWrapperTypeCheck(self, line): On 2017/05/30 at 16:16:20, Dan ...
3 years, 6 months ago (2017-05-31 22:30:20 UTC) #10
Dan Beam
lgtm https://codereview.chromium.org/2913453002/diff/20001/tools/web_dev_style/PRESUBMIT.py File tools/web_dev_style/PRESUBMIT.py (right): https://codereview.chromium.org/2913453002/diff/20001/tools/web_dev_style/PRESUBMIT.py#newcode30 tools/web_dev_style/PRESUBMIT.py:30: tests.append(path.join(cwd, 'js_checker_eslint_test.py')) On 2017/05/31 22:30:20, dpapad wrote: > ...
3 years, 6 months ago (2017-05-31 22:54:34 UTC) #11
dpapad
https://codereview.chromium.org/2913453002/diff/20001/tools/web_dev_style/PRESUBMIT.py File tools/web_dev_style/PRESUBMIT.py (right): https://codereview.chromium.org/2913453002/diff/20001/tools/web_dev_style/PRESUBMIT.py#newcode30 tools/web_dev_style/PRESUBMIT.py:30: tests.append(path.join(cwd, 'js_checker_eslint_test.py')) On 2017/05/31 at 22:54:33, Dan Beam wrote: ...
3 years, 6 months ago (2017-05-31 22:58:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2913453002/20001
3 years, 6 months ago (2017-06-01 00:49:34 UTC) #14
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 01:07:00 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/728cff0c8b3f6e205d5ab5d26e63...

Powered by Google App Engine
This is Rietveld 408576698