mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
chore: applies fixes to clang format (#5677)
* chore: update the clang-format version * chore: specify the clang format version to use * chore: remove style tag since it will default to file
This commit is contained in:
@@ -18,6 +18,7 @@ var fs = require('fs');
|
||||
var execSync = require('child_process').execSync;
|
||||
var through2 = require('through2');
|
||||
|
||||
const clangFormat = require('clang-format');
|
||||
const clangFormatter = require('gulp-clang-format');
|
||||
var closureCompiler = require('google-closure-compiler').gulp();
|
||||
var closureDeps = require('google-closure-deps');
|
||||
@@ -516,7 +517,7 @@ function cleanBuildDir(done) {
|
||||
*/
|
||||
function format() {
|
||||
return gulp.src(['core/**/*.js'], {base: '.'})
|
||||
.pipe(clangFormatter.format('file'))
|
||||
.pipe(clangFormatter.format('file', clangFormat))
|
||||
.pipe(gulp.dest('.'));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user