Skip to content

Conversation

RyanCavanaugh
Copy link
Member

  • Removes errors that aren't used by the compiler (mostly duplicates)
  • Adds a script that finds these + finds errors that aren't anywhere in the baselines (in case we get bored some day and need something to do...)

let glob = require('glob');

fs.readFile('src/compiler/diagnosticMessages.json', 'utf-8', (err, data) => {
let messages = JSON.parse(data);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file uses tabs, switch to spaces

count++;
}
}
console.log(count + ' of ' + keys.length + ' errors are not in baselines');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the numbers your found?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

138 of 535 errors are not in baselines

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that a decent number of those are e.g. commandline option descriptions, which aren't actually errors

@mhegazy
Copy link
Contributor

mhegazy commented Jun 25, 2015

👍

1 similar comment
@yuit
Copy link
Contributor

yuit commented Jun 26, 2015

👍

RyanCavanaugh added a commit that referenced this pull request Jun 26, 2015
@RyanCavanaugh RyanCavanaugh merged commit d9ca99d into microsoft:master Jun 26, 2015
@RyanCavanaugh RyanCavanaugh deleted the errorCheck branch June 26, 2015 21:23
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants