-
Notifications
You must be signed in to change notification settings - Fork 1.9k
JS: Add file diagnostics queries #5656
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
Conversation
erik-krogh
left a comment
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 think it would be nice to have tests for these new queries.
But if you don't think so, that's also fine with me.
Otherwise LGTM.
adityasharad
left a comment
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.
Looks good!
Toolchain support for the new kind is underway in the coming weeks (cc @henrymercer). If you'd like to merge this PR before that's ready, then you may wish to turn off the fail-on-warnings mode for your language tests.
This is basically just a port of the C++/JS queries added in: - github#5414 (C++) - github#5656 (JS) SyntaxError should capture all errors we have information about. At least in `python/ql/src/semmlecode.python.dbscheme` the only match for `error` is `py_syntax_error_versioned` (which `SyntaxError` is based on).
This is basically just a port of the C++/JS queries added in: - github#5414 (C++) - github#5656 (JS) SyntaxError should capture all errors we have information about. At least in `python/ql/src/semmlecode.python.dbscheme` the only match for `error` is `py_syntax_error_versioned` (which `SyntaxError` is based on).
|
Internal tools have been updated to allow using |
Diagnostic queries for showing files that were extracted and files with extraction errors, based on those from C++.
In general it's possible for a file to be partially extracted, e.g. an HTML file with an event attribute we couldn't parse, or a JS file with an invalid regexp literal. However, the format of the
SuccessfullyExtractedFiles.qlquery requires us to make a binary decision for each file and say whether it was successful or not. So we're classifying errors as "fatal" based on a how likely it is that the main parts of the enclosing file couldn't be extracted.cc @adityasharad