mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Use camelCase for XML acronym
This commit is contained in:
@@ -21,7 +21,7 @@ private class KtExpectationComment extends KtComment, ExpectationComment {
|
|||||||
override string getContents() { result = this.getText().suffix(2).trim() }
|
override string getContents() { result = this.getText().suffix(2).trim() }
|
||||||
}
|
}
|
||||||
|
|
||||||
private class XMLExpectationComment extends ExpectationComment instanceof XMLComment {
|
private class XmlExpectationComment extends ExpectationComment instanceof XMLComment {
|
||||||
override string getContents() { result = this.(XMLComment).getText().trim() }
|
override string getContents() { result = this.(XMLComment).getText().trim() }
|
||||||
|
|
||||||
override Location getLocation() { result = this.(XMLComment).getLocation() }
|
override Location getLocation() { result = this.(XMLComment).getLocation() }
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
| test.xml:4:5:4:32 | attribute=value | Unexpected result: hasXmlResult= |
|
||||||
|
| test.xml:5:29:5:52 | $ hasXmlResult | Missing result:hasXmlResult= |
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import semmle.code.xml.XML
|
import semmle.code.xml.XML
|
||||||
import TestUtilities.InlineExpectationsTest
|
import TestUtilities.InlineExpectationsTest
|
||||||
|
|
||||||
class XMLTest extends InlineExpectationsTest {
|
class XmlTest extends InlineExpectationsTest {
|
||||||
XMLTest() { this = "XMLTest" }
|
XmlTest() { this = "XmlTest" }
|
||||||
|
|
||||||
override string getARelevantTag() { result = "hasXmlResult" }
|
override string getARelevantTag() { result = "hasXmlResult" }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user