提交 f0805c28 编写于 作者: J Joao Moreno

fix hygiene

上级 3e78859e
...@@ -160,7 +160,7 @@ var hygiene = exports.hygiene = function (some) { ...@@ -160,7 +160,7 @@ var hygiene = exports.hygiene = function (some) {
this.emit('data', file); this.emit('data', file);
}); });
var tslint = es.through(function(file) { var tsl = es.through(function(file) {
configuration = tslint.findConfiguration(null, '.'); configuration = tslint.findConfiguration(null, '.');
var options = { var options = {
formatter: 'json', formatter: 'json',
...@@ -186,7 +186,7 @@ var hygiene = exports.hygiene = function (some) { ...@@ -186,7 +186,7 @@ var hygiene = exports.hygiene = function (some) {
.pipe(filter(copyrightFilter)) .pipe(filter(copyrightFilter))
.pipe(copyrights) .pipe(copyrights)
.pipe(filter(tslintFilter)) .pipe(filter(tslintFilter))
.pipe(tslint) .pipe(tsl)
.pipe(es.through(null, function () { .pipe(es.through(null, function () {
if (errorCount > 0) { if (errorCount > 0) {
this.emit('error', 'Hygiene failed with ' + errorCount + ' errors. Check \'build/gulpfile.hygiene.js\'.'); this.emit('error', 'Hygiene failed with ' + errorCount + ' errors. Check \'build/gulpfile.hygiene.js\'.');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册