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 2733523 commit fc5bcfbCopy full SHA for fc5bcfb
javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap/CDL.qll
@@ -165,9 +165,8 @@ class CdlService extends CdlElement {
165
CdlService() { kind = CdlServiceKind(this.getPropStringValue("kind")) }
166
167
UserDefinedApplicationService getImplementation() {
168
- // This file base name will be .cds.json, so the stem will be .cds
169
- this.getFile().getStem() = result.getFile().getStem() + ".cds" and
170
- this.getFile().getParentContainer() = result.getFile().getParentContainer()
+ result.getFile().getRelativePath().regexpReplaceAll("\\.[^.]+$", ".cds.json") =
+ this.getFile().getRelativePath()
171
}
172
173
/**
0 commit comments