Skip to content

Commit bfd2c14

Browse files
committed
Ruby: Add shim StandardLibrary.qll
This file re-exports everything it used to define, marking each as deprecated to warn users that they should import `Core` or `Stdlib` instead.
1 parent 459f949 commit bfd2c14

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/**
2+
* This module is deprecated, and exists as a shim to support any existing code that relies on it.
3+
* New code should use `codeql.ruby.frameworks.Core` and `codeql.ruby.frameworks.Stdlib` instead.
4+
*/
5+
6+
private import codeql.ruby.frameworks.Core as Core
7+
private import codeql.ruby.frameworks.Stdlib as Stdlib
8+
9+
/**
10+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
11+
*/
12+
deprecated class SubshellLiteralExecution = Core::SubshellLiteralExecution;
13+
14+
/**
15+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
16+
*/
17+
deprecated class SubshellHeredocExecution = Core::SubshellHeredocExecution;
18+
19+
/**
20+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
21+
*/
22+
deprecated class BasicObjectInstanceMethodCall = Core::BasicObjectInstanceMethodCall;
23+
24+
/**
25+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
26+
*/
27+
deprecated predicate basicObjectInstanceMethodName = Core::basicObjectInstanceMethodName/0;
28+
29+
/**
30+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
31+
*/
32+
deprecated class InstanceEvalCallCodeExecution = Core::InstanceEvalCallCodeExecution;
33+
34+
/**
35+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
36+
*/
37+
deprecated class ObjectInstanceMethodCall = Core::ObjectInstanceMethodCall;
38+
39+
/**
40+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
41+
*/
42+
deprecated predicate objectInstanceMethodName = Core::objectInstanceMethodName/0;
43+
44+
/**
45+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
46+
*/
47+
deprecated class KernelMethodCall = Core::KernelMethodCall;
48+
49+
/**
50+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
51+
*/
52+
deprecated class KernelSystemCall = Core::KernelSystemCall;
53+
54+
/**
55+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
56+
*/
57+
deprecated class KernelExecCall = Core::KernelExecCall;
58+
59+
/**
60+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
61+
*/
62+
deprecated class KernelSpawnCall = Core::KernelSpawnCall;
63+
64+
/**
65+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
66+
*/
67+
deprecated class EvalCallCodeExecution = Core::EvalCallCodeExecution;
68+
69+
/**
70+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
71+
*/
72+
deprecated class SendCallCodeExecution = Core::SendCallCodeExecution;
73+
74+
/**
75+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
76+
*/
77+
deprecated module Module = Core::Module;
78+
79+
/**
80+
* DEPRECATED: Import `codeql.ruby.frameworks.Core` instead of `codeql.ruby.frameworks.StandardLibrary`.
81+
*/
82+
deprecated module Array = Core::Array;
83+
84+
/**
85+
* DEPRECATED: Import `codeql.ruby.frameworks.Stdlib` instead of `codeql.ruby.frameworks.StandardLibrary`.
86+
*/
87+
deprecated module Regexp = Core::Regexp;
88+
89+
/**
90+
* DEPRECATED: Import `codeql.ruby.frameworks.Stdlib` instead of `codeql.ruby.frameworks.StandardLibrary`.
91+
*/
92+
deprecated module Open3 = Stdlib::Open3;
93+
94+
/**
95+
* DEPRECATED: Import `codeql.ruby.frameworks.Stdlib` instead of `codeql.ruby.frameworks.StandardLibrary`.
96+
*/
97+
deprecated module Logger = Stdlib::Logger;

0 commit comments

Comments
 (0)