mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Swift: Hide locationless results in the inlineexpectations test (there's no way to make them expected).
This commit is contained in:
@@ -1 +0,0 @@
|
||||
| file://:0:0:0:0 | self | Unexpected result: hasPathInjection=208 |
|
||||
|
||||
@@ -19,6 +19,7 @@ class PathInjectionTest extends InlineExpectationsTest {
|
||||
location = sinkExpr.getLocation() and
|
||||
element = sinkExpr.toString() and
|
||||
tag = "hasPathInjection" and
|
||||
location.getFile().getName() != "" and
|
||||
value = source.asExpr().getLocation().getStartLine().toString()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user