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

Unified Diff: third_party/WebKit/Source/devtools/scripts/format.js

Issue 2717833002: DevTools: use git cl format --js for PRESUBMIT check (Closed)
Patch Set: fix Created 3 years, 10 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 | « third_party/WebKit/Source/devtools/scripts/clang_format/index.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/scripts/format.js
diff --git a/third_party/WebKit/Source/devtools/scripts/format.js b/third_party/WebKit/Source/devtools/scripts/format.js
deleted file mode 100644
index 449d10e356c71e9bdc680aedc0bcbadca4068a9b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/devtools/scripts/format.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-var childProcess = require('child_process');
-var fs = require('fs');
-var path = require('path');
-
-var args = process.argv.slice(2);
-
-var CLANG_FORMAT_PATH = path.resolve(__dirname, 'clang_format', 'index.js');
-var IGNORE_FILE_PATH = path.resolve(__dirname, '..', '.eslintignore');
-
-var ignoreFile = fs.readFileSync(IGNORE_FILE_PATH, 'utf-8');
-var ignores = ignoreFile.split('\n').filter(str => str.length);
-var ignoreArg = '--ignore=' + ignores.join(',');
-
-console.log('Running clang-format');
-var clangArgs = ['-i', ignoreArg];
-if (args.length)
- clangArgs = clangArgs.concat(args);
-else
- clangArgs.push('--glob=+(scripts|front_end)/**/*.js');
-
-
-var options = {cwd: path.resolve(__dirname, '..')};
-
-childProcess.fork(CLANG_FORMAT_PATH, clangArgs, options);
« no previous file with comments | « third_party/WebKit/Source/devtools/scripts/clang_format/index.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698