mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C#: Remove false positive and update test output
C#: Mark results as GOOD
This commit is contained in:
@@ -83,8 +83,10 @@ class RelevantDefinition extends AssignableDefinition {
|
||||
//or
|
||||
//this.(AssignableDefinitions::OutRefDefinition).getTargetAccess().isOutArgument()
|
||||
this.(AssignableDefinitions::LocalVariableDefinition).getDeclaration() = any(LocalVariableDeclExpr lvde |
|
||||
lvde = any(SpecificCatchClause scc).getVariableDeclExpr() or
|
||||
lvde = any(ForeachStmt fs).getVariableDeclExpr()
|
||||
lvde = any(SpecificCatchClause scc).getVariableDeclExpr()
|
||||
or
|
||||
lvde = any(ForeachStmt fs).getVariableDeclExpr() and
|
||||
not lvde.getName() = "_"
|
||||
)
|
||||
or
|
||||
this instanceof AssignableDefinitions::PatternDefinition
|
||||
|
||||
Reference in New Issue
Block a user