Skip to content

Report JSDoc errors as semantic errors in checkJS mode #20106

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

Merged
merged 5 commits into from
Nov 20, 2017

Conversation

sandersn
Copy link
Member

Fixes #19999

This allows reporting of semantic errors as well. Semantic errors are likely to outnumber syntactic errors, so it's valuable not to block semantic errors on a few syntactic errors.

This allows reporting of semantic errors as well. Semantic errors are
likely to outnumber syntactic errors, so it's valuable not to block
semantic errors on a few syntactic errors.
Add almost 37,000 semantic errors in addition to the 250 syntactic
errors

const diagnostics = bindDiagnostics.concat(checkDiagnostics, fileProcessingDiagnosticsInFile, programDiagnosticsInFile);
let diagnostics = bindDiagnostics.concat(checkDiagnostics, fileProcessingDiagnosticsInFile, programDiagnosticsInFile);
if (isCheckJsEnabledForFile(sourceFile, options)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

we already checked this a few lines above, maybe we should just do this once.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. Done.

@sandersn sandersn merged commit 40c3213 into master Nov 20, 2017
@sandersn sandersn deleted the jsdoc-errors-become-semantic-errors branch November 20, 2017 19:29
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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.

2 participants