We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9821c4a commit d977e8aCopy full SHA for d977e8a
ruby/ql/lib/codeql/ruby/frameworks/Rails.qll
@@ -125,23 +125,11 @@ private module Settings {
125
loc.getFile().getStem() = "test"
126
}
127
128
- private DataFlow::Node getTransitiveReceiver(DataFlow::CallNode c) {
129
- exists(DataFlow::Node recv |
130
- recv = c.getReceiver() and
131
- (
132
- result = recv
133
- or
134
- recv instanceof DataFlow::CallNode and
135
- result = getTransitiveReceiver(recv)
136
- )
137
138
- }
139
-
140
private class Setting extends DataFlow::CallNode {
141
Setting() {
142
// exclude some test configuration
143
not isInTestConfiguration(this.getLocation()) and
144
- getTransitiveReceiver(this) instanceof Config::Node
+ this.getReceiver+() instanceof Config::Node
145
146
147
0 commit comments