-
Notifications
You must be signed in to change notification settings - Fork 13k
Remove unused errors #3637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused errors #3637
Conversation
RyanCavanaugh
commented
Jun 25, 2015
- 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); |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
👍 |
1 similar comment
👍 |