mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 14:30:13 +00:00
fix hygiene
This commit is contained in:
parent
52c9c102f8
commit
d113d85fd4
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue