mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Ruby: Restrict Rails Setting nodes to SetterMethodCalls
This commit is contained in:
@@ -131,7 +131,8 @@ private module Settings {
|
||||
Setting() {
|
||||
// exclude some test configuration
|
||||
not isInTestConfiguration(this.getLocation()) and
|
||||
this.getReceiver+() instanceof Config::Node
|
||||
this.getReceiver+() instanceof Config::Node and
|
||||
this.asExpr().getExpr() instanceof SetterMethodCall
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user