Merge pull request #3723 from Microsoft/fixErrorCheckIndentation
Changed tabs to spaces and reformatted errorCheck.ts
This commit is contained in:
commit
19c332d572
|
@ -62,7 +62,7 @@ fs.readFile('src/compiler/diagnosticInformationMap.generated.ts', 'utf-8', (err,
|
|||
let allSrc: string = '';
|
||||
glob('./src/**/*.ts', {}, (err, files) => {
|
||||
console.log('Reading ' + files.length + ' source files');
|
||||
for(let file of files) {
|
||||
for (let file of files) {
|
||||
if (file.indexOf('diagnosticInformationMap.generated.ts') > 0) {
|
||||
continue;
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ fs.readFile('src/compiler/diagnosticInformationMap.generated.ts', 'utf-8', (err,
|
|||
|
||||
let count = 0;
|
||||
console.log('== List of errors not used in source ==')
|
||||
for(let errName of errorNames) {
|
||||
for (let errName of errorNames) {
|
||||
if (allSrc.indexOf(errName) < 0) {
|
||||
console.log(errName);
|
||||
count++;
|
||||
|
|
Loading…
Reference in a new issue