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

Issue 2917473002: js_checker.py: Restore smoke tests for linting violations. (Closed)

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

Description

js_checker.py: Restore smoke tests for linting violations. Restoring test to ensure that document.getElementById() calls are flagged as style violations, now that these checks are performed via ESLint. These tests are not meant to be exhaustive, instead they just validate that our PRESUBMIT integration with ESLint works. BUG=720034 Review-Url: https://codereview.chromium.org/2917473002 Cr-Commit-Position: refs/heads/master@{#476014} Committed: https://chromium.googlesource.com/chromium/src/+/5c9c24ec6d1d8ddaae83a9118c5824b6c40f9854

Patch Set 1 #

Total comments: 3

Patch Set 2 : Nits. #

Patch Set 3 : Fix #

Patch Set 4 : Nits. #

Total comments: 14

Patch Set 5 : Address comments. #

Total comments: 7

Patch Set 6 : Address nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -2 lines) Patch
M PRESUBMIT_test_mocks.py View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M tools/web_dev_style/js_checker.py View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
A tools/web_dev_style/js_checker_eslint_test.py View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (10 generated)
dpapad
https://codereview.chromium.org/2917473002/diff/1/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2917473002/diff/1/tools/web_dev_style/js_checker.py#newcode127 tools/web_dev_style/js_checker.py:127: results += self.RunEsLintChecks(affected_js_files_paths) I had to change the signature ...
3 years, 6 months ago (2017-05-30 22:11:31 UTC) #2
Dan Beam
https://codereview.chromium.org/2917473002/diff/1/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2917473002/diff/1/tools/web_dev_style/js_checker.py#newcode127 tools/web_dev_style/js_checker.py:127: results += self.RunEsLintChecks(affected_js_files_paths) On 2017/05/30 22:11:30, dpapad wrote: > ...
3 years, 6 months ago (2017-05-30 23:11:09 UTC) #3
Dan Beam
https://codereview.chromium.org/2917473002/diff/60001/tools/web_dev_style/js_checker_eslint_test.py File tools/web_dev_style/js_checker_eslint_test.py (right): https://codereview.chromium.org/2917473002/diff/60001/tools/web_dev_style/js_checker_eslint_test.py#newcode31 tools/web_dev_style/js_checker_eslint_test.py:31: self._tmp_files.append(f.name) why do we need an array still?
3 years, 6 months ago (2017-05-30 23:12:27 UTC) #4
dpapad
Will add additional OWNERs once this LG. https://codereview.chromium.org/2917473002/diff/1/tools/web_dev_style/js_checker.py File tools/web_dev_style/js_checker.py (right): https://codereview.chromium.org/2917473002/diff/1/tools/web_dev_style/js_checker.py#newcode127 tools/web_dev_style/js_checker.py:127: results += ...
3 years, 6 months ago (2017-05-31 01:30:06 UTC) #5
Dan Beam
lgtm w/nits https://codereview.chromium.org/2917473002/diff/80001/PRESUBMIT_test_mocks.py File PRESUBMIT_test_mocks.py (right): https://codereview.chromium.org/2917473002/diff/80001/PRESUBMIT_test_mocks.py#newcode30 PRESUBMIT_test_mocks.py:30: self.presubmitLocalPath = os.path.dirname(__file__) presubmit_local_path https://codereview.chromium.org/2917473002/diff/80001/tools/web_dev_style/js_checker_eslint_test.py File tools/web_dev_style/js_checker_eslint_test.py ...
3 years, 6 months ago (2017-05-31 01:40:31 UTC) #6
dpapad
@phajdan.jr: Please review PRESUBMIT_test_mocks.py change. https://codereview.chromium.org/2917473002/diff/80001/tools/web_dev_style/js_checker_eslint_test.py File tools/web_dev_style/js_checker_eslint_test.py (right): https://codereview.chromium.org/2917473002/diff/80001/tools/web_dev_style/js_checker_eslint_test.py#newcode16 tools/web_dev_style/js_checker_eslint_test.py:16: os.path.join(os.path.dirname(_HERE_PATH), '..', '..')) On ...
3 years, 6 months ago (2017-05-31 02:49:58 UTC) #8
Paweł Hajdan Jr.
LGTM
3 years, 6 months ago (2017-05-31 15:23:22 UTC) #9
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/2917473002/40002
3 years, 6 months ago (2017-05-31 20:22:46 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 20:51:45 UTC) #19
Message was sent while issue was closed.
Committed patchset #6 (id:40002) as
https://chromium.googlesource.com/chromium/src/+/5c9c24ec6d1d8ddaae83a9118c58...

Powered by Google App Engine
This is Rietveld 408576698