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

Unified Diff: common/node_runner/node_runner/node_util.py

Issue 2361623007: Add a run_eslint wrapper script (Closed)
Patch Set: Synced to head Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/node_runner/bin/test_node_for_smoke ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/node_runner/node_runner/node_util.py
diff --git a/common/node_runner/node_runner/node_util.py b/common/node_runner/node_runner/node_util.py
index a51daa569035a8271cb1676669e7986d3041bc67..841c3d0a6084eed4664a3206deba634c35008f26 100644
--- a/common/node_runner/node_runner/node_util.py
+++ b/common/node_runner/node_runner/node_util.py
@@ -60,21 +60,3 @@ def GetNodeModulesPath():
# Escape path on Windows because it's very long and must be passed to NTFS.
path = u'\\\\?\\' + path
return path
-
-
-def RunEslint(filenames=None):
- cmd = [
- GetNodePath(),
- os.path.join(GetNodeModulesPath(), 'eslint', 'bin', 'eslint.js'),
- '--color',
- '--config',
- os.path.join(py_utils.GetCatapultDir(), 'common', 'eslint', '.eslintrc'),
- '--rulesdir',
- os.path.join(py_utils.GetCatapultDir(), 'common', 'eslint', 'rules')
- ]
- if filenames:
- cmd += filenames
- try:
- return subprocess.check_output(cmd, stderr=subprocess.STDOUT)
- except subprocess.CalledProcessError as e:
- return e.output
« no previous file with comments | « common/node_runner/bin/test_node_for_smoke ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698