Ruby: Restrict Rails Setting nodes to SetterMethodCalls

This commit is contained in:
Alex Ford
2022-01-05 14:11:07 +00:00
parent 712972cb82
commit da8c745bd8

View File

@@ -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
}
}