-
Notifications
You must be signed in to change notification settings - Fork 192
JS-822 Enable type-checking for single-file analysis #5860
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
base: master
Are you sure you want to change the base?
Conversation
|
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.
Nice! Glad you had the time to work on it 👍
| program, | ||
| ...fieldsForJsTsAnalysisInput(), | ||
| }); | ||
| pendingFiles.delete(fileName); |
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.
I don't like this passing in a structure, mutating it as we iterate over it. Can we have another structure for "completed" files, so that when we loop through pending files, we just check if its in the completed set of files?
| if (isAnalysisCancelled()) { | ||
| return; | ||
| } | ||
| if (!pendingFiles.has(pendingFile) || !files[pendingFile]) { |
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.
how can a file be in pendingFiles and not int files? If that is possible, shouldn't we first filter the pendingFiles by the files object?
| import { JsTsAnalysisInput, JsTsAnalysisOutput, JsTsAnalysisOutputWithAst } from '../analysis.js'; | ||
| import { RuleConfig } from '../../linter/config/rule-config.js'; | ||
| import { EmbeddedAnalysisOutput } from '../../embedded/analysis/analysis.js'; | ||
| import { ErrorCode } from '../../../../shared/src/errors/error.js'; | ||
| import { Configuration } from '../../../../shared/src/helpers/configuration.js'; |
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.
ehhh, we really should add this rule into SQ




JS-822