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')
.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);
});