Skip to content

Commit 899c294

Browse files
Alvaro MuñozGeekMasher
Alvaro Muñoz
authored andcommitted
Refactor getFullyQualifiedName in C#
1 parent 5965360 commit 899c294

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

csharp/src/library_sources/ExternalAPIsQuery.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ private class DefaultSafeExternalApiCallable extends SafeExternalApiCallable {
3737
this = any(SystemStringClass s).getIsNullOrWhiteSpaceMethod() or
3838
this.getName().regexpMatch("Count|get_Count|get_Length") or
3939
// SECLAB: Exclude all .NET methods
40-
this.getDeclaringType().getFullyQualifiedName().matches(["System.%", "Microsoft.%", "Azure.%"])
40+
this.getDeclaringType()
41+
.getNamespace()
42+
.getFullName()
43+
.matches(["System.%", "Microsoft.%", "Azure.%"])
4144
}
4245
}
4346

0 commit comments

Comments
 (0)