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
Ruby: Do not expose AST layer through ruby.qll
#10376
Conversation
|
Shall we remove all |
d7785ab
to
ea10698
Compare
Or perhaps we should just let |
Fine with me too, the most important thing to me is removing all |
I think I would let those libraries expose locations as well, since it is such a core concept. |
Having all of them export locations is good; definitely better than having one (or some of them) do it. |
bc3691d
to
42f1256
Compare
|
Wouldn't it make sense to make the three layers available as named modules? So after |
Fine by me. |
| @@ -2,5 +2,6 @@ | |||
| * Provides classes for working with Ruby programs. | |||
| */ | |||
|
|
|||
| private import Customizations | |||
| import codeql.ruby.AST | |||
| import codeql.ruby.AST as Ast | |||
Check warning
Code scanning / CodeQL
Names only differing by case Warning
| private import Customizations | ||
| import codeql.ruby.AST | ||
| import codeql.ruby.AST as Ast | ||
| import codeql.ruby.CFG as Cfg |
Check warning
Code scanning / CodeQL
Names only differing by case Warning
Co-authored-by: Nick Rolfe <nickrolfe@github.com>


Since writing data-flow queries is much more common than writing syntactic queries, it makes little sense to have the AST layer exposed by default in
ruby.qll.This PR therefore removes that AST libraries from
ruby.qll(instead, one should importcodeql.ruby.AST). In fact,ruby.qllis now completely empty, and is only kept for backwards compatibility with quick queries.