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

Issue 2907763004: js_checker.py: Replace custom GetElementByIdCheck with ESLint no-restricted-properties. (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 GetElementByIdCheck with ESLint no-restricted-properties. BUG=720034 Review-Url: https://codereview.chromium.org/2907763004 Cr-Commit-Position: refs/heads/master@{#475985} Committed: https://chromium.googlesource.com/chromium/src/+/2674f928e4c18a87bb48941bd026af17713013d4

Patch Set 1 #

Total comments: 6

Patch Set 2 : Resolve conflicts. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -50 lines) Patch
M .eslintrc.js View 1 1 chunk +9 lines, -0 lines 0 comments Download
M tools/web_dev_style/js_checker.py View 2 chunks +0 lines, -7 lines 0 comments Download
M tools/web_dev_style/js_checker_test.py View 1 chunk +0 lines, -43 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
dpapad
Example error message: /chromium1/src/chrome/browser/resources/settings/direction_delegate.js 27:14 error 'document.getElementById' is restricted from being used. Use $('id') or ...
3 years, 6 months ago (2017-05-27 00:55:34 UTC) #4
Dan Beam
https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py File tools/web_dev_style/js_checker_test.py (left): https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py#oldcode206 tools/web_dev_style/js_checker_test.py:206: def ShouldFailGetElementByIdCheck(self, line): can we leave some of these?
3 years, 6 months ago (2017-05-30 16:17:26 UTC) #7
dpapad
https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py File tools/web_dev_style/js_checker_test.py (left): https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py#oldcode206 tools/web_dev_style/js_checker_test.py:206: def ShouldFailGetElementByIdCheck(self, line): On 2017/05/30 at 16:17:26, Dan Beam ...
3 years, 6 months ago (2017-05-30 17:08:24 UTC) #8
Dan Beam
https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py File tools/web_dev_style/js_checker_test.py (left): https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py#oldcode206 tools/web_dev_style/js_checker_test.py:206: def ShouldFailGetElementByIdCheck(self, line): On 2017/05/30 17:08:24, dpapad wrote: > ...
3 years, 6 months ago (2017-05-30 17:11:42 UTC) #9
Dan Beam
lgtm
3 years, 6 months ago (2017-05-30 17:24:57 UTC) #10
dpapad
https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py File tools/web_dev_style/js_checker_test.py (left): https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py#oldcode206 tools/web_dev_style/js_checker_test.py:206: def ShouldFailGetElementByIdCheck(self, line): > > Do you think is ...
3 years, 6 months ago (2017-05-30 18:30:15 UTC) #11
Dan Beam
https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py File tools/web_dev_style/js_checker_test.py (left): https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py#oldcode206 tools/web_dev_style/js_checker_test.py:206: def ShouldFailGetElementByIdCheck(self, line): On 2017/05/30 18:30:15, dpapad wrote: > ...
3 years, 6 months ago (2017-05-30 20:33:31 UTC) #12
dpapad
https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py File tools/web_dev_style/js_checker_test.py (left): https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py#oldcode206 tools/web_dev_style/js_checker_test.py:206: def ShouldFailGetElementByIdCheck(self, line): On 2017/05/30 at 20:33:30, Dan Beam ...
3 years, 6 months ago (2017-05-30 22:11:21 UTC) #13
dpapad
https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py File tools/web_dev_style/js_checker_test.py (left): https://codereview.chromium.org/2907763004/diff/1/tools/web_dev_style/js_checker_test.py#oldcode206 tools/web_dev_style/js_checker_test.py:206: def ShouldFailGetElementByIdCheck(self, line): On 2017/05/30 at 20:33:30, Dan Beam ...
3 years, 6 months ago (2017-05-30 22:11:21 UTC) #14
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/2907763004/1
3 years, 6 months ago (2017-05-31 17:20:13 UTC) #17
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/2907763004/20001
3 years, 6 months ago (2017-05-31 17:24:32 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/279702) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 6 months ago (2017-05-31 17:31:32 UTC) #22
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/2907763004/20001
3 years, 6 months ago (2017-05-31 17:38:54 UTC) #24
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 19:40:49 UTC) #27
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2674f928e4c18a87bb48941bd026...

Powered by Google App Engine
This is Rietveld 408576698