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

fix hygiene

上级 52c9c102
......@@ -81,8 +81,8 @@ gulp.task('hygiene', function() {
.toString('utf8')
.split(/\r\n|\r|\n/)
.forEach(function(line, i) {
if (line.length === 0) {
// empty lines are OK
if (/^\s*$/.test(line)) {
// empty or whitespace lines are OK
} else if (/^[\t]*[^\s]/.test(line)) {
// good indent
} else if (/^[\t]* \*/.test(line)) {
......@@ -101,7 +101,7 @@ gulp.task('hygiene', function() {
console.error(file.path + ': Missing or bad copyright statement');
errorCount++;
}
this.emit('data', file);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册