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 e42afa3 commit 07a5ac3Copy full SHA for 07a5ac3
csharp/ql/lib/semmle/code/cil/ConsistencyChecks.qll
@@ -617,7 +617,13 @@ class ExprMissingType extends InstructionViolation {
617
not instruction instanceof Opcodes::Arglist and
618
not instruction instanceof Opcodes::Refanytype and
619
instruction.getPushCount() >= 1 and
620
- count(instruction.getType()) != 1
+ count(instruction.getType()) != 1 and
621
+ // OS specific (osx) specific inconsistency
622
+ not instruction
623
+ .getImplementation()
624
+ .getMethod()
625
+ .hasFullyQualifiedName("System.Runtime.InteropServices.RuntimeInformation",
626
+ "get_OSDescription")
627
}
628
629
override string getMessage() { result = "Expression is missing getType()" }
0 commit comments