Skip to content

Commit 007ab2b

Browse files
committed
Ruby: Do not expose AST layer through ruby.qll
1 parent 2739b9c commit 007ab2b

File tree

174 files changed

+174
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+174
-174
lines changed

.github/workflows/ruby-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ jobs:
197197
- name: Prepare test files
198198
shell: bash
199199
run: |
200-
echo "import ruby select count(File f)" > "test.ql"
200+
echo "import codeql.ruby.AST select count(File f)" > "test.ql"
201201
echo "| 4 |" > "test.expected"
202202
echo 'name: sample-tests
203203
version: 0.0.0

ruby/ql/examples/snippets/emptythen.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* statement
1212
*/
1313

14-
import ruby
14+
import codeql.ruby.AST
1515

1616
from IfExpr i
1717
where not exists(i.getThen().getAChild())

ruby/ql/lib/Customizations.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@
99
* to model frameworks that are not covered by the standard library.
1010
*/
1111

12-
import ruby

ruby/ql/lib/codeql/ruby/AST.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ private import ast.internal.AST
1717
private import ast.internal.Scope
1818
private import ast.internal.Synthesis
1919
private import ast.internal.TreeSitter
20+
private import Customizations
2021

2122
cached
2223
private module Cached {

ruby/ql/lib/codeql/ruby/ApiGraphs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* directed and labeled; they specify how the components represented by nodes relate to each other.
77
*/
88

9-
private import ruby
9+
private import codeql.ruby.AST
1010
private import codeql.ruby.DataFlow
1111
private import codeql.ruby.typetracking.TypeTracker
1212
private import codeql.ruby.ast.internal.Module

ruby/ql/lib/codeql/ruby/CFG.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/** Provides classes representing the control flow graph. */
22

3+
import codeql.Locations
34
import controlflow.ControlFlowGraph
45
import controlflow.CfgNodes as CfgNodes
56
import controlflow.BasicBlocks

ruby/ql/lib/codeql/ruby/DataFlow.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* Provides classes for performing local (intra-procedural) and
33
* global (inter-procedural) data flow analyses.
44
*/
5+
6+
import codeql.Locations
7+
58
module DataFlow {
69
import codeql.ruby.dataflow.internal.DataFlowImpl
710
}

ruby/ql/lib/codeql/ruby/InclusionTests.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Contains classes for recognizing array and string inclusion tests.
33
*/
44

5-
private import ruby
5+
private import codeql.ruby.AST
66
private import codeql.ruby.DataFlow
77
private import codeql.ruby.controlflow.CfgNodes
88

ruby/ql/lib/codeql/ruby/StringOps.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Provides classes and predicates for reasoning about string-manipulating expressions.
33
*/
44

5-
private import ruby
5+
private import codeql.ruby.AST
66
private import codeql.ruby.DataFlow
77
private import codeql.ruby.controlflow.CfgNodes
88
private import InclusionTests

ruby/ql/lib/codeql/ruby/ast/Erb.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
private import codeql.Locations
21
private import codeql.ruby.AST
32
private import internal.Erb
43
private import internal.TreeSitter

0 commit comments

Comments
 (0)