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

Issue 2535983002: [eslint] Don't treat eslint warnings as PRESUBMIT errors (Closed)

Created:
4 years ago by eakuefner
Modified:
4 years ago
CC:
catapult-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[eslint] Don't treat eslint warnings as PRESUBMIT errors This CL makes it so that any warnings emitted by eslint will not cause the PRESUBMIT to error out. In the process of doing so, it cleans up the structure of the eslint Python module; we were using a find+xargs-based method of linting directories in order to find .html files, which is not necessary given eslint's --ext option. BUG=catapult:#3034 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/355ca2541b19167eea565d3cad751c3f8c26db51

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address Charlie's comments #

Patch Set 3 : fix smoke test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -41 lines) Patch
M .eslintignore View 1 chunk +0 lines, -3 lines 0 comments Download
M catapult_build/js_checks.py View 1 1 chunk +3 lines, -3 lines 0 comments Download
M common/eslint/bin/run_eslint View 1 1 chunk +8 lines, -8 lines 0 comments Download
M common/eslint/eslint/__init__.py View 1 1 chunk +7 lines, -26 lines 0 comments Download
M common/eslint/eslint/smoke_test.py View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 22 (10 generated)
eakuefner
PTAL
4 years ago (2016-11-28 21:31:30 UTC) #2
charliea (OOO until 10-5)
https://codereview.chromium.org/2535983002/diff/1/common/eslint/bin/run_eslint File common/eslint/bin/run_eslint (right): https://codereview.chromium.org/2535983002/diff/1/common/eslint/bin/run_eslint#newcode37 common/eslint/bin/run_eslint:37: parser.add_argument('--files', '-f', default=None, nargs='+', metavar='FILE', (Here and wherever makes ...
4 years ago (2016-11-28 21:54:21 UTC) #3
eakuefner
Thanks for your comments; please take another look. https://codereview.chromium.org/2535983002/diff/1/common/eslint/bin/run_eslint File common/eslint/bin/run_eslint (right): https://codereview.chromium.org/2535983002/diff/1/common/eslint/bin/run_eslint#newcode37 common/eslint/bin/run_eslint:37: parser.add_argument('--files', ...
4 years ago (2016-11-28 22:27:50 UTC) #4
charliea (OOO until 10-5)
lgtm
4 years ago (2016-11-29 19:29:18 UTC) #5
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/2535983002/20001
4 years ago (2016-11-29 19:32:24 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Presubmit on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Presubmit/builds/5251)
4 years ago (2016-11-29 19:34:49 UTC) #9
eakuefner
+Annie for Catapult OWNERS
4 years ago (2016-11-29 22:24:13 UTC) #11
sullivan
lgtm
4 years ago (2016-11-29 23:00:50 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/2535983002/20001
4 years ago (2016-11-29 23:01:34 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Linux Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Linux%20Tryserver/builds/5745)
4 years ago (2016-11-29 23:06:21 UTC) #16
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/2535983002/40001
4 years ago (2016-12-05 19:37:00 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-05 20:03:20 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698