mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
rename expected file, add ql file, delete qlref file
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import java
|
||||
import semmle.code.xml.AndroidManifest
|
||||
import TestUtilities.InlineExpectationsTest
|
||||
|
||||
class DebuggableAttributeTrueTest extends InlineExpectationsTest {
|
||||
DebuggableAttributeTrueTest() { this = "DebuggableAttributeEnabledTest" }
|
||||
|
||||
override string getARelevantTag() { result = "hasDebuggableAttributeEnabled" }
|
||||
|
||||
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "hasDebuggableAttributeEnabled" and
|
||||
exists(AndroidXmlAttribute androidXmlAttr |
|
||||
androidXmlAttr.getName() = "debuggable" and
|
||||
androidXmlAttr.getValue() = "true" and
|
||||
not androidXmlAttr.getLocation().getFile().getRelativePath().matches("%/build%")
|
||||
|
|
||||
androidXmlAttr.getLocation() = location and
|
||||
element = androidXmlAttr.toString() and
|
||||
value = ""
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
| TestTrue.xml:7:5:17:30 | debuggable=true | The 'debuggable' attribute is enabled. |
|
||||
@@ -1 +0,0 @@
|
||||
Security/CWE/CWE-489/DebuggableAttributeTrue.ql
|
||||
Reference in New Issue
Block a user