fix hygiene

This commit is contained in:
Joao Moreno 2015-11-25 09:47:15 +01:00
parent 52c9c102f8
commit d113d85fd4

View file

@ -81,8 +81,8 @@ gulp.task('hygiene', function() {
.toString('utf8') .toString('utf8')
.split(/\r\n|\r|\n/) .split(/\r\n|\r|\n/)
.forEach(function(line, i) { .forEach(function(line, i) {
if (line.length === 0) { if (/^\s*$/.test(line)) {
// empty lines are OK // empty or whitespace lines are OK
} else if (/^[\t]*[^\s]/.test(line)) { } else if (/^[\t]*[^\s]/.test(line)) {
// good indent // good indent
} else if (/^[\t]* \*/.test(line)) { } else if (/^[\t]* \*/.test(line)) {
@ -101,7 +101,7 @@ gulp.task('hygiene', function() {
console.error(file.path + ': Missing or bad copyright statement'); console.error(file.path + ': Missing or bad copyright statement');
errorCount++; errorCount++;
} }
this.emit('data', file); this.emit('data', file);
}); });