mirror of
https://github.com/github/codeql.git
synced 2026-04-23 15:55:18 +02:00
C#: Fixup tests.
This commit is contained in:
@@ -617,7 +617,13 @@ class ExprMissingType extends InstructionViolation {
|
||||
not instruction instanceof Opcodes::Arglist and
|
||||
not instruction instanceof Opcodes::Refanytype and
|
||||
instruction.getPushCount() >= 1 and
|
||||
count(instruction.getType()) != 1
|
||||
count(instruction.getType()) != 1 and
|
||||
// OS specific (osx) specific inconsistency
|
||||
not instruction
|
||||
.getImplementation()
|
||||
.getMethod()
|
||||
.hasFullyQualifiedName("System.Runtime.InteropServices.RuntimeInformation",
|
||||
"get_OSDescription")
|
||||
}
|
||||
|
||||
override string getMessage() { result = "Expression is missing getType()" }
|
||||
|
||||
Reference in New Issue
Block a user